View source: R/hilbert.matrix.R
hilbert.matrix | R Documentation |
This function returns an n by n Hilbert matrix.
hilbert.matrix(n)
n |
Order of the Hilbert matrix |
A Hilbert matrix is an order n square matrix of unit fractions with elements defined as H_{i,j} = {1 \mathord{≤ft/ {\vphantom {1 {≤ft( {i + j - 1} \right)}}} \right. } {≤ft( {i + j - 1} \right)}}.
A matrix.
If the argument is less than or equal to zero, the function displays an error message and stops. If the argument is not an integer, the function displays an error message and stops.
Frederick Novomestky fnovomes@poly.edu
Hilbert, David (1894). Ein Beitrag zur Theorie des Legendre schen Polynoms, Acta Mathematica, Springer, Netherlands, 18, 155-159.
H <- hilbert.matrix( 4 ) print( H )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.