Learn R Programming

pracma (version 1.8.8)

moler: Moler Matrix

Description

Generate the Moler matrix of size n x n. The Moler matrix is for testing eigenvalue computations.

Usage

moler(n)

Arguments

n
integer

Value

  • matrix of size n x n

Details

The Moler matrix for testing eigenvalue computations is a symmetric matrix with exactly one small eigenvalue.

See Also

wilkinson

Examples

Run this code
(a <- moler(10))
min(eig(a))

Run the code above in your browser using DataLab