view test/octave.test/linalg/eig-2.m @ 4720:e759d01692db ss-2-1-53

[project @ 2004-01-23 04:13:37 by jwe]
author jwe
date Fri, 23 Jan 2004 04:13:37 +0000
parents b937a6953b5e
children
line wrap: on
line source

[v, d] = eig ([1, 2; 2, 1]);
x = 1 / sqrt (2);
((abs (d - [-1, 0; 0, 3]) < sqrt (eps))
 && (abs (v - [-x, x; x, x]) < sqrt (eps)))