The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
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"

 superseded by version below

17  END

"To live or die by your own sword one must first learn to wield it aptly."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
41Z Routine of the Week: Complex Fibonacci - Ángel Martin - 07-23-2020 11:32 AM



User(s) browsing this thread: 1 Guest(s)