Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: math

Quantlet: eisrs
Description: Computes the eigenvalues and eigenvectors of a real symmetric square matrix

Usage: {w, z} = eisrs(a)
Input:
a n x n matrix
Output:
w n x 1 vector of eigenvalues
z n x n matrix of eigenvectors

Example:



library("math")

y1 = #(1, -1, 0)

y2 = #(-1, 2, -1)

y3 = #(0, -1, 1)

a = y1~y2~y3

{w, z} = eisrs(a)

w

z

Result:



Contents of w

[1,] -2.5653e-16 

[2,]        1 

[3,]        3 

Contents of z

[1,]  0.57735  0.70711  0.40825 

[2,]  0.57735 -2.8623e-16  -0.8165 

[3,]  0.57735 -0.70711  0.40825 


Library: math

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Fabian Noetzel
(C) MD*TECH Method and Data Technologies, 21.9.2000