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)In the solver,
Open in the solverhilbert_matrix(2)gives[[1, 1/2], [1/2, 1/3]].
Related functions
- identity_matrix
Identity matrix of a given size.
- diagonal_matrix
A matrix with the given list on its diagonal and zeros elsewhere.
- matrix_exp
Exponential of a square matrix.
- matrix_function
A function of a square matrix.
- matrix_log
Logarithm of a square matrix.
- matrix_power
A square matrix to a whole power.