Rdocumentation
powered by
Learn R Programming
Matrix (version 0.3-26)
hilbert: 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
Run this code
round
(hilbert(
6
),
4
)
Run the code above in your browser using
DataLab