view test/octave.test/linalg/eig-2.m @ 2728:0bb420249195

[project @ 1997-02-24 22:16:23 by jwe]
author jwe
date Mon, 24 Feb 1997 22:16:27 +0000
parents
children eb2222c7f4cf
line wrap: on
line source

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