Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

Post a reply

Go back

Write your message and submit
:) :| :( :D :o ;) :/ :P :lol: :mad: :rolleyes: :cool: | :dizzy :eek :kiss :roflol :rolleyes :shame :down :up :touched :sleep :wave :swear :tongue :what :faint :dunno
Options

Go back

Topic review (newest first)

anonimnystefy
2013-09-04 04:00:26

Yes, that is pretty much the reason why I could never do much in it.

gAr
2013-09-04 03:55:15

Okay, tacit programming is the best part of the language.

But needs much practice to know the rules and use it efficiently.

anonimnystefy
2013-09-04 03:44:07

Yes, I've seen them. They are fantastic.

I have learned a bit about it, I was amazed by how simple and complex it looks at the same time. Also, the tacit programming part of J caught my eye. I haven't done much in it though.

gAr
2013-09-03 20:03:00

Yes, and there are essays in that site with very useful programs!

I'm still learning. Are you too trying out J?

anonimnystefy
2013-09-03 19:44:31

I agree. Fortunately, the tutorials I found on that site are great!

How good are you with tacit expressions?

gAr
2013-09-03 19:37:48

Indeed, they are hard to remember and understand.
Anyway, it's good and quick once we get a hang of it. Their documentation is good, but scattered. They need to reorganize that.
E.g. I had to search for quite a long time to find how to change the array values

anonimnystefy
2013-09-03 18:59:30

You're welcome.

The functions are hard to remember.

gAr
2013-09-03 15:56:44

Okay, thanks, did not see that before!

anonimnystefy
2013-09-02 18:21:55

Only when monadic. As dyadic, it represents circle functions: http://www.jsoftware.com/help/dictionary/dodot.htm

gAr
2013-09-02 13:18:29

trig functions must be loaded.
o.n is pi times n.

anonimnystefy
2013-09-02 04:14:45

Isn't o. used for trig functions as well?

gAr
2013-09-02 03:26:27

Hi,

Can anyone tell how to find the value of the following integral upto four significant digits with the help of a computer but not a readymade CAS?

J simulation:

Code:

load 'trig'            NB. required for cos
samp =: 1000000        NB. the number of samples
avg =: +/%#            NB. the average function
f =: ?samp$0           NB. random numbers in range (0,1)
fn =: cos f*pi%4       NB. get the list of cosines after scaling into range (0,pi/4)
fn100 =: fn^100        NB. get the 100th power
avg fn100*pi%4         NB. Take the average after multiplying (pi/4-0)

≈ 0.125139

which is close enough!

bobbym
2013-08-05 05:50:11

You do not. But like a difference table how far you go horizontally depends on how tall the first column is. Each column is more and more accurate, so pick a number n and go from there.

anonimnystefy
2013-08-05 05:46:44

But, how do I know how many values to get for the first column?

bobbym
2013-08-05 05:44:23

You only need one column and the the formula generates all the rest.

Board footer

Powered by FluxBB