hilbert {Matrix}R Documentation

Generate a Hilbert matrix

Description

Generate the n by n symmetric Hilbert matrix. Because these matrices are ill-conditioned for moderate to large n, they are often used for testing numerical linear algebra code.

Usage

hilbert(n)

Arguments

n a positive integer.

Value

the n by n symmetric Hilbert matrix.

Examples

round(hilbert(6), 4)