Learn R Programming

pracma (version 1.8.6)

wilkinson: wilkinson Matrix

Description

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

Usage

wilkinson(n)

Arguments

n
integer

Value

  • matrix of size n x n

Details

The Wilkinson matrix for testing eigenvalue computations is a symmetric matrix with three non-zero diagonals and with several pairs of nearly equal eigenvalues.

See Also

Toeplitz

Examples

Run this code
(a <- wilkinson(7))
eig(a)

Run the code above in your browser using DataLab