Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 90,933

Solve the equation

for x. You get 2 solutions:

I used the second one.

**In mathematics, you don't understand things. You just get used to them.**

**I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.**

**Online**

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,479

Hi,

Hope you don't mind replying to old ones, I'll post code whichever I'll be able to come up with!

J:

```
samp=:1000000
f=:1+?samp$0
fx=:2*(1-%f^2)
(+/%#)f*fx
```

≈1.61407

"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 90,933

Hi gAr;

You can post it and thanks for doing so.

**In mathematics, you don't understand things. You just get used to them.**

**I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.**

**Online**

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,479

Okay, it's very lightweight when compared to other functional programming languages, so I'm fascinated!

"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 90,933

Hi;

It is light in m too.

**In mathematics, you don't understand things. You just get used to them.**

**I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.**

**Online**

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,479

Hi,

I meant the size of the whole package..

"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 90,933

Oh sorry, I did not understand. I thought you meant program size.

**In mathematics, you don't understand things. You just get used to them.**

**Online**

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,479

No problem, i'll explore more into the functional stuff..

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 90,933

I prefer it too but I am afraid that it will always be like a second language to me. When you begin with procedural you are poisoned for life. See you later, got to get off.

**In mathematics, you don't understand things. You just get used to them.**

**Online**

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,479

Anyway, i'll try..

See you later.

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

myPDF[]=ProbabilityDistribution[2(1-1/x^2),{x,1,2}];

Is that an array construct?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

'You have made another human being happy. There is no greater accomplishment.' -bobbym

**Online**

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 90,933

No, that is a PDF. The random variate command constructs an array of random numbers that obey that PDF.

**In mathematics, you don't understand things. You just get used to them.**

**Online**

How about writing a CFD simulation or a chemistry one?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'

'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'

'You have made another human being happy. There is no greater accomplishment.' -bobbym

**Online**

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 90,933

How does that relate to Computer math?

**In mathematics, you don't understand things. You just get used to them.**

**Online**