% Last bit of ap2  Maple

syms A x         % Declare variables (allowed to be variables)
A = [ -5  2  4
       2 -8  2   % Note the syntax is in MATLAB
       4  2 -5 ] % (Maple itself would need the "array" command)
P3 = det(x*eye(3) - A)

cof = sym2poly(P3)

A2=double(A)
c2 = poly(A2)
c2 = poly2sym(c2)

ezplot(c2,[-12,2])

Integral = int(c2,-12,2)

