Skip to content

HilbertMatrix ​

The (possibly rectangular) Hilbert matrix, entry (i, j) = 1/(i + j - 1), kept exact.

✓ checked against that system · ! checked, with disagreements (hover a chip)FungrimHilbertMatrixWolfram LanguageHilbertMatrix✓
HilbertMatrix(n)the n×n Hilbert matrix
HilbertMatrix({m, n})the m×n Hilbert matrix
Typed signatures
TypePackageApplies
(integer | list<integer>) -> list<any>combinatoricsalways

Domain: Collections

Details
  • Every entry is an exact rational, never a float — Wolfram's own default.
  • Symmetric when square, and famously ill-conditioned (its determinant shrinks fast: det(HilbertMatrix(3)) = 1/2160).
  • The rectangular dimensions are a {m, n} LIST, not two bare arguments — kernel-checked: Wolfram's HilbertMatrix has no 2-argument form, only HilbertMatrix[n] and HilbertMatrix[{m, n}].

Examples

Basic #
live ↗
InHilbertMatrix(3)\mathrm{HilbertMatrix}(3)Out[[1,12,13],[12,13,14],[13,14,15]]\bigl\lbrack\bigl\lbrack1, \frac{1}{2}, \frac{1}{3}\bigr\rbrack, \bigl\lbrack\frac{1}{2}, \frac{1}{3}, \frac{1}{4}\bigr\rbrack, \bigl\lbrack\frac{1}{3}, \frac{1}{4}, \frac{1}{5}\bigr\rbrack\bigr\rbrack
Scope #
live ↗
InHilbertMatrix([2,3])\mathrm{HilbertMatrix}(\bigl\lbrack2, 3\bigr\rbrack)Out[[1,12,13],[12,13,14]]\bigl\lbrack\bigl\lbrack1, \frac{1}{2}, \frac{1}{3}\bigr\rbrack, \bigl\lbrack\frac{1}{2}, \frac{1}{3}, \frac{1}{4}\bigr\rbrack\bigr\rbrack
About
Examples2
Checked againstWolfram Language 2 agree
CrosswalkFungrimWolfram Language

See also: DiagonalMatrix