linalg(deprecated)
fibonacci
fibonacci matrix
Calling Sequence
Parameters
Description
Examples
fibonacci(n)
n
-
non-negative integer
Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The fibonacci(n) calling sequence returns the nth fibonacci matrix, Fn, defined as follows:
F0=matrix1,1,1
F1=matrix1,1,1
F2=matrix2,2,1,1,1,0
Fn=[[Fn−1,Fn−1],[Fn−1,0]],wheredimFn=dimFn−1+dimFn−2
Note: Only the first dimFn−1+dimFn−2 rows and columns are retained.
The command with(linalg,fibonacci) allows the use of the abbreviated form of this command.
withlinalg:
fibonacci3
111101110
See Also
combinat[fibonacci]
LinearAlgebra
Download Help Document