Algosim documentation: IsEigenvector

IsEigenvector

Tests if a vector is an eigenvector of a matrix.

Syntax

Description

IsEigenvector(A, v, ε) returns true iff v is an eigenvector of A with floating-point comparisons made with epsilon ε.

Examples

A ≔ ❨❨1, −1, −1, 1❩, ❨−1, 0, 0, 1❩, ❨−1, 0, 2, 0❩, ❨1, 0, 0, 2❩❩
⎛ 1  −1  −1   1⎞
⎜−1   0   0   1⎟
⎜−1   0   2   0⎟
⎝ 1   0   0   2⎠
IsEigenvector(A, ❨1, 0, −1, 1❩)
true

See also