Fibonacci
example_fibonacci
¶
Overall description of this example goes here.
fib_zero() -> int
¶
fib_one() -> int
¶
fib_next(_z: int, _y: int, _x: int, f1: int, f2: int) -> int
¶
Calculate the Fibonacci number at a given index z using the Fibonacci numbers at indices x = z - 2 and y = z - 1.
:param _z: The index for which the Fibonacci number is calculated. :param _y: The index z - 1. :param _x: The index z - 2. :param f1: The Fibonacci number at index (z - 1). :param f2: The Fibonacci number at index (z - 2). :return: The Fibonacci number at index z.