Contents Previous Next Subchapters

Hilbert Matrix
Syntax h = hilb(n)
See Also invhilb , hankel

Description
Returns a double precision n x n Hilbert matrix where n is an integer, real, double-precision, or complex scalar and equal to a real integer. The return value is defined by
                   1
     h(ij) = ---------  
               i + j - 1

Example
If you enter
     hilb(3)
O-Matrix will reply
     {
     [ 1 , 0.5 , 0.333333 ]
     [ 0.5 , 0.333333 , 0.25 ]
     [ 0.333333 , 0.25 , 0.2 ]
     }