View source: R/creation.matrix.R
creation.matrix | R Documentation |
This function returns the order n creation matrix, a square matrix with the sequence 1, 2, ..., n - 1 on the sub-diagonal below the principal diagonal.
creation.matrix(n)
n |
a positive integer greater than 1 |
The order n creation matrix is also called the derivation matrix and is used in numerical mathematics and physics. It arises in the solution of linear dynamical systems. The form of the matrix is ≤ft\lbrack {\begin{array}{cccccc} 0&0&0& \cdots &0&0\\ 1&0&0& \cdots &0&0\\ 0&2&0& \cdots &0&0\\ 0&0&3& \ddots &0&0\\ \vdots & \vdots & \vdots & \ddots & \ddots &{}\\ 0&0&0& \cdots &{n - 1}&0 \end{array}} \right\rbrack.
An order n matrix.
If the argument n is not an integer that is greater than 1, the function presents an error message and stops.
Frederick Novomestky fnovomes@poly.edu
Aceto, L. and D. Trigiante (2001). Matrices of Pascal and Other Greats, American Mathematical Monthly, March 2001, 108(3), 232-245.
Weinberg, S. (1995). The Quantum Theory of Fields, Cambridge University Press.
H <- creation.matrix( 10 ) print( H )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.