Fibonacci numbers

The Fibonacci numbers (see http://en.wikipedia.org/wiki/Fibonacci_number) are based on a recurrence relation:

Fibonacci numbers

It is difficult to express this relation directly with NumPy code. However, we can express this relation in a matrix form or use the following golden ratio formula:

Fibonacci numbers

with

Fibonacci numbers

This will introduce the matrix() and rint() functions. The matrix() function creates matrices and the rint() function rounds numbers to the closest integer, but the result is not an integer.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset