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, F⁡n, defined as follows:
F⁡0=matrix⁡1,1,1
F⁡1=matrix⁡1,1,1
F⁡2=matrix⁡2,2,1,1,1,0
F⁡n=[⁢[F⁡n−1,F⁡n−1],[F⁡n−1,0]⁢],where⁢⁢⁢dim⁢F⁡n=dim⁢F⁡n−1+dim⁢F⁡n−2
Note: Only the first dim⁡F⁡n−1+dim⁡F⁡n−2 rows and columns are retained.
The command with(linalg,fibonacci) allows the use of the abbreviated form of this command.
with⁡linalg:
fibonacci⁡3
111101110
See Also
combinat[fibonacci]
LinearAlgebra
Download Help Document