Learn R Programming

pracma (version 1.5.8)

hilb: Hilbert Matrix

Description

Generate Hilbert matrix of dimension n

Usage

hilb(n)

Arguments

n
positive integer specifying the dimension of the Hilbert matrix

Value

  • matrix of dimension n

Details

Generate the Hilbert matrix H of dimension n with elements H[i, j] = 1/(i+j-1).

(Note: This matrix is ill-conditioned, see e.g. det(hilb(6)).)

See Also

vander

Examples

Run this code
hilb(5)

Run the code above in your browser using DataLab