But the disagreement is after just the 17th digit. 3141592653589793238462643383279 <-- pi 3141592653589793216413703340032 <-- some other number agree to here |
On 26 Mar 2012, at 10:36, Devon McCormick wrote: > Because your original function returns a number and "f" returns a > literal representation of a number. > > On Sun, Mar 25, 2012 at 12:23 PM, Linda Alvord <lindaalv...@verizon.net> > wrote: >> Here are some odd things I found so far. > ... >> f=: 13 :'":x:<.o.10x^y' >> f 30 >> 3141592653589793216413703340032 >> #f 30 >> 31 >> >> (<.@o.10x^30),<.@o.10x^30 >> 3141592653589793238462643383279 3141592653589793238462643383279 >> (f 30),f 30 >> 31415926535897932164137033400323141592653589793216413703340032 >> >> >> >> >> Why don't the original statement and my function f agree? Which is >> correct? > ... > -- > Devon McCormick, CFA > ^me^ at acm. > org is my > preferred e-mail > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- Dan T. Abell :: dabell at txcorp dot com :: 303.444.2452 Tech-X Corp., 5621 Arapahoe Ave, Ste A, Boulder CO 80303 http://www.txcorp.com :: 303.748.6894/c 303.448.7756/fx ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm