On Fri, May 15, 2009 at 12:10 PM, gary ng <[email protected]> wrote: > I can get fib 150000 before I run out of memory as Haskell now supports big > integer just like Python. A nice thing about the above Haskell solution is > that M. comes free.
Borrowing from http://www.jsoftware.com/jwiki/Essays/Fibonacci%20Sequence f7=: 3 : 0 mp=. +/ .* {.{: mp/ mp~^:(I.|.#:y) 2 2$0 1 1 1x ) f7 200000 1508568355798893899263687894817313444... -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
