41Z Routine of the Week: Complex Fibonacci
|
07-23-2020, 11:32 AM
(This post was last modified: 07-25-2020 09:41 AM by Ángel Martin.)
Post: #1
|
|||
|
|||
41Z Routine of the Week: Complex Fibonacci
Complex Fibonacci Numbers
The routine below uses the Binet formula with real orders "x" to obtain the Complex Fibonacci numbers. For integer inputs you should get the known Fibonacci series, but it gets interesting when you use non-integer values for the input. This link shows graphs of the function output values in a couple of cases. Input: x in the X register. The program listing is below, step #4 PHI is the golden ratio, ~1.6108339887... Code: 01 LBL "ZFIB" "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
41Z Routine of the Week: Complex Fibonacci - Ángel Martin - 07-23-2020 11:32 AM
RE: 41Z Routine of the Week: Complex Fibonacci - JMBaillard - 07-23-2020, 08:00 PM
RE: 41Z Routine of the Week: Complex Fibonacci - Ángel Martin - 07-25-2020, 09:11 AM
|
User(s) browsing this thread: 1 Guest(s)