It would help if I were thinking of fibonacci and not factorial... i was expecting fib 5 to be 120... lol.
this program works: t =: 3 : 'y > 1' fib =: base_case ` rec_case @. t rec_case =: 3 : '( fib (y-1) ) + ( fib (y-2) )' base_case =: 1: fib 3 3 fib 4 5 fib 5 8 fib 6 13 On 5/19/07, Raul Miller <[EMAIL PROTECTED]> wrote:
On 5/19/07, Raul Miller <[EMAIL PROTECTED]> wrote: > t should be either > t=:>&1 > > or, if you prefer > t=:1 < ] Other valid definitions include t=: ] > 1: and t=: > 1: and, of course t=:1: < ] -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
