I am trying to learn M. (memoization) and as a by-product came across the 
following:

NB. define verb fib
   fib=: 3 : 0 M. "0
   if. 1>:y do. y else. (fib y-1)+fib y-2 end.
)

   fib 60
1.54801e12
   fib 60x
1.54801e12
   x: fib 60
1548008755920

...and was wondering why

fib 60x

didn't result in an extended integer answer?


Thanks in advance
                                          
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to