Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

hilbert_matrix function

Hilbert matrix of a given size: the entry in row i and column j is 1/(i + j - 1).

How to write it

hilbert_matrix(n)

n
The number of rows and columns. Takes a whole number.

Examples

  • hilbert_matrix⁡(2)=(1121213)\displaystyle \operatorname{hilbert\_matrix}(2) = \begin{pmatrix} 1 & \frac{1}{2} \\ \frac{1}{2} & \frac{1}{3} \end{pmatrix}
    hilbert_matrix(2)

    In the solver, hilbert_matrix(2) gives [[1, 1/2], [1/2, 1/3]].

    Open in the solver