[REBOL] Re: Fibonaccio - Was: Report on WinCE Rebol --- Speed Comparison
From: bard:papegaaij:austarnet:au at: 29-Jun-2001 20:57
Hi Joe,
You wrote:
>How about the function? ;-)
>
> fibr: func [n [integer!] /local sr5] [
> sr5: square-root 5.0
> ((0.5 * (1.0 + sr5)) ** n) -
> ((0.5 * (1.0 - sr5)) ** n) / sr5
> ]
>
>(Remember that REBOL ignores operator precedence, so the
>division is applied to the difference.)
Your erudition never ceases to amaze me! I didn't know anything
about this possibility (I'm a poet, not a mathematician ;-).
However, despite its obviously misguided aims and assumptions,
my function DID teach me a lot about programming in REBOL.
Thanks for the information.
Bard
-jn-
--
------------------------------------------------------------
Programming languages: compact, powerful, simple ...
Pick any two!
joel'dot'neely'at'fedex'dot'com