Learn R Programming

matrixcalc (version 1.0-6)

hilbert.matrix: Hilbert matrices

Description

This function returns an n by n Hilbert matrix.

Usage

hilbert.matrix(n)

Value

A matrix.

Arguments

n

Order of the Hilbert matrix

Author

Frederick Novomestky fnovomes@poly.edu

Details

A Hilbert matrix is an order \(n\) square matrix of unit fractions with elements defined as \(H_{i,j} = {1 \mathord{\left/ {\vphantom {1 {\left( {i + j - 1} \right)}}} \right. } {\left( {i + j - 1} \right)}}\).

References

Hilbert, David (1894). Ein Beitrag zur Theorie des Legendre schen Polynoms, Acta Mathematica, Springer, Netherlands, 18, 155-159.

Examples

Run this code
H <- hilbert.matrix( 4 )
print( H )

Run the code above in your browser using DataLab