Dieter - I think your confusion stems from this:
Joey K Tuttle <[email protected]> (on Fri, Aug 7, 2009 at 1:54 PM) included part of a J session: > Pi 50 > 3.14159265358979323846264338327950288419716939937510 > Pi > (2: + j.~) ": [: (<....@o. % ]) 10"_ ^ x: The two lines here that are indented by three spaces are what Joey typed, i.e. "Pi 50" and "Pi"; the other two lines are responses from the J interpreter. The missing "etc etc" is that you need to enter Pi=: (2: + j.~) ": [: (<....@o. % ]) 10"_ ^ x: to define the "Pi" verb as Joey had done. In his example, he showed a use of the verb ("Pi 50") then entered the verb name with no arguments to display its definition. I think the confusion was caused by the seasoned J users understanding the implication of what Joey showed and entering the definition of "Pi" as I've shown it above whereas you probably missed that implication. I, too, was confused by the subsequent discussion about entering "(2:+j." as this partial expression gives an error. A fuller context would have been helpful. Regards, Devon On Sat, Aug 8, 2009 at 12:16 PM, DIETER ENSSLEN <[email protected]> wrote: > sorry, can you be a tiny bit more specific with a little complete example > of how to get a few significant figures of pi for example printed out? > > pi=:(2:+j. what is the etc etc etc that will get pi to 10 significant > digits for example and would it be a real number i could work with? > > so what does J work with internally, 16 significant digits normally?? > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
