Then perhaps something like this:
fib=:verb define
series=. 0 1
needed=. >./, y
while. needed >: #series do.
series=. series, +/_1 _2 { series
end.
y { series return.
)
Thanks,
--
Raul
On Sun, Feb 26, 2017 at 1:42 PM, Linda A Alvord <[email protected]> wrote:
> I only know the one in my example. 1, 1, 2, 3, 5 ...
> Next tern us tge sum of the previous two or in this case 8. It an infinite
> series.
>
> Linda
>
> -----Original Message-----
> From: Programming [mailto:[email protected]] On Behalf
> Of Raul Miller
> Sent: Sunday, February 26, 2017 1:03 PM
> To: Programming forum
> Subject: Re: [Jprogramming] Explicit fib
>
> Which english definition of fibonacci's series are you working with?
>
> Thanks,
>
> --
> Raul
>
>
> On Sun, Feb 26, 2017 at 12:48 PM, Linda A Alvord
> <[email protected]> wrote:
>> I have been working on finding an explicit definition for the Fibonacci
>> series. (without tie)
>>
>>
>>
>> fib 14
>>
>> 5!:4 <'fib'
>>
>> load 'debug'
>>
>> dissect'fib 14'
>>
>>
>>
>> To see the dissection, place cursor on fib and click right mouse.
>>
>>
>>
>> I want a definition which will work for the youngest children.
>>
>>
>>
>> Thanks for any ideas. Linda
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm