1
glever Scilab Group Scilab Function glever
3
glever - inverse of matrix pencil
6
[Bfs,Bis,chis]=glever(E,A [,s])
8
E, A : two real square matrices of same dimensions
10
s : character string (default value 's')
12
Bfs,Bis : two polynomial matrices
21
by generalized Leverrier's algorithm for a matrix pencil.
23
(s*E-A)^-1 = (Bfs/chis) - Bis.
24
chis = characteristic polynomial (up to a multiplicative constant).
26
Bfs = numerator polynomial matrix.
28
Bis = polynomial matrix ( - expansion of (s*E-A)^-1 at infinity).
30
Note the - sign before Bis.
33
This function uses cleanp to simplify Bfs,Bis and chis.
36
s=%s;F=[-1,s,0,0;0,-1,0,0;0,0,s-2,0;0,0,0,s-1];
37
[Bfs,Bis,chis]=glever(F)
38
inv(F)-((Bfs/chis) - Bis)
43
rowshuff, det, invr, coffg, pencan, penlaur