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

You are not logged in.

## #51 2013-03-09 01:03:03

bobbym

Offline

### Re: Simulations

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 have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #52 2013-09-02 00:33:58

gAr
Star Member

Offline

### Re: Simulations

Hi,

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

J:

#### Code:

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."

## #53 2013-09-02 00:46:38

bobbym

Offline

### Re: Simulations

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 have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #54 2013-09-02 00:56:08

gAr
Star Member

Offline

### Re: Simulations

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."

## #55 2013-09-02 01:17:14

bobbym

Offline

### Re: Simulations

Hi;

It is light in m too.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #56 2013-09-02 01:44:15

gAr
Star Member

Offline

### Re: Simulations

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."

## #57 2013-09-02 01:47:44

bobbym

Offline

### Re: Simulations

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #58 2013-09-02 01:52:25

gAr
Star Member

Offline

### Re: Simulations

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

"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."

## #59 2013-09-02 01:56:31

bobbym

Offline

### Re: Simulations

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #60 2013-09-02 01:58:56

gAr
Star Member

Offline

### Re: Simulations

Anyway, i'll try..
See you later.

"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."

## #61 2013-12-08 12:55:39

Agnishom
Real Member

Online

### Re: Simulations

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'
'Who are you to judge everything?' -Alokananda

## #62 2013-12-08 13:03:25

bobbym

Offline

### Re: Simulations

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #63 2014-03-13 01:33:32

Agnishom
Real Member

Online

### Re: Simulations

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'
'Who are you to judge everything?' -Alokananda

## #64 2014-03-13 01:37:57

bobbym

Offline

### Re: Simulations

How does that relate to Computer math?

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.