fibonacci.matrix {matrixcalc} | R Documentation |
Fibonacci Matrix
Description
This function constructs the order n + 1 square Fibonacci matrix which is derived from a Fibonacci sequence.
Usage
fibonacci.matrix(n)
Arguments
n |
a positive integer value |
Details
Let be the
set of
Fibonacci numbers where
and
. The
order
Fibonacci matrix
has as typical element
.
Value
An order matrix
Note
If the argument n is not a positive integer, the function presents an error message and stops.
Author(s)
Frederick Novomestky fnovomes@poly.edu
References
Zhang, Z. and J. Wang (2006). Bernoulli matrix and its algebraic properties, Discrete Applied Nathematics, 154, 1622-1632.
Examples
F <- fibonacci.matrix( 10 )
print( F )
[Package matrixcalc version 1.0-6 Index]