up previous next
HilbertMat    --    create a Hilbert matrix over QQ


Syntax
HilbertMat(N: INT): MAT over QQ

Description
This function returns the n-by-n Hilbert matrix over QQ.

Example
/**/  HilbertMat(3);
matrix(QQ,
 [[1,  1/2,  1/3],
  [1/2,  1/3,  1/4],
  [1/3,  1/4,  1/5]])