View source: R/fibonacci.matrix.R
fibonacci.matrix | R Documentation |
This function constructs the order n + 1 square Fibonacci matrix which is derived from a Fibonacci sequence.
fibonacci.matrix(n)
n |
a positive integer value |
Let ≤ft\{ {{f_0},\;{f_1},\; … ,\;{f_n}} \right\} be the set of n + 1 Fibonacci numbers where {f_0} = {f_1} = 1 and {f_j} = {f_{j - 1}} + {f_{j - 2}},\quad 2 ≤ j ≤ n. The order n + 1 Fibonacci matrix {\bf{F}} has as typical element {F_{i,j}} = ≤ft\{ {\begin{array}{cc} {{f_{i - j + 1}}}&{i - j + 1 ≥ 0}\\ 0&{i - j + 1 < 0} \end{array}} \right..
An order n + 1 matrix
If the argument n is not a positive integer, the function presents an error message and stops.
Frederick Novomestky fnovomes@poly.edu
Zhang, Z. and J. Wang (2006). Bernoulli matrix and its algebraic properties, Discrete Applied Nathematics, 154, 1622-1632.
F <- fibonacci.matrix( 10 ) print( F )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.