[Jprogramming] Fibonacci Verbs

Skip Cave skip at caveconsulting.com
Sat Sep 25 20:32:56 UTC 2021


From: https://code.jsoftware.com/wiki/Essays/Fibonacci_Sequence

f0b=: (-&2 +&$: -&1) ^: (1&<) M.

f2a=: 3 : '{. +/\@|.^:y 0 1x'

x:f0b 98

135301852344706760704

x:f2a 98

135301852344706746049


(x:f0b 98) -: x:f2a 98

0


Why the discrepancy?


Skip


Skip Cave
Cave Consulting LLC


More information about the Programming mailing list