Graphics Reference
In-Depth Information
>> pretty(poly2sym(p))
4 3 2
x - 2x + 48 x - 67 x + 33
to find the roots of the characteristic polynomial we use:
>> roots(p)
ans =
0.2836 + 6.8115i
0.2836 - 6.8115i
0.7164 + 0.4435i
0.7164 - 0.4435i
to verify that the matrix a satisfies the characteristic polynomial, we find the values in the polynomial matrix a
and observe that the result almost generates the null matrix.
>> polyvalm(p,A)
ans =
1.0e-012 *
-0.1990 0.1137 0.0266 0.5969
0.0093 -0.0711 -0.0071 0.0426
-0.0870 0.1137 -0.4192 -0.3979
0.0568 -0.1421 0.0013 -0.0497
eXerCISe 6-3
expand the following operations in polynomial expressions.
3 2 2 3 3
a) (5 x y z - 4 x y z)
4 2 2 4
b) (x + y) (x + x y + y) (x - y)]
>> syms x y z
>> pretty(expand(simple(5*x^3*y^2*z-4*x*y^2*z^3)^3))
9 6 3 7 6 5 5 6 7 3 6 9
125 x y z - 300 x y z + 240 x y z - 64 x y z
Search WWH ::




Custom Search