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

You are not logged in.
Post a replyTopic review (newest first)
Yes, that is pretty much the reason why I could never do much in it.
Okay, tacit programming is the best part of the language.
Yes, I've seen them. They are fantastic.
Yes, and there are essays in that site with very useful programs!
I agree. Fortunately, the tutorials I found on that site are great!
Indeed, they are hard to remember and understand.
You're welcome.
Okay, thanks, did not see that before!
Only when monadic. As dyadic, it represents circle functions: http://www.jsoftware.com/help/dictionary/dodot.htm
trig functions must be loaded.
Isn't o. used for trig functions as well?
Hi,
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/40) ≈ 0.125139
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.
But, how do I know how many values to get for the first column?
You only need one column and the the formula generates all the rest. 