FUNCTION REFERENCE

invhilb

Exact inverse of the Hilbert matrix.

Exact inverse of the Hilbert matrix.

Syntax

H = invhilb(n)

Integer matrix from the closed-form binomial formula (Choi 1983), not by inverting hilb(n).

Entries are exact while they fit integer arithmetic and are otherwise rounded to double;

large n loses accuracy and entries become Inf only where the exact value exceeds double range.

A non-integer n gives "Size inputs must be integers." as in MATLAB.

Example

invhilb(3)   % [9 -36 30; -36 192 -180; 30 -180 180]

Differences from MATLAB: not compared for very large n, where results are rounded approximations.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.