Ask Your Question

Revision history [back]

Simplifying symbolic characteristic polynomial

I have a simple code,

sage: theta=var('theta');

sage: assume(theta,'real');

sage: M=matrix([[1,0],[cos(theta),-i*sin(theta)]])/sqrt(2);

sage: show(M)

sage: cp = characteristic_polynomial((M.conjugate_transpose())*M)

sage: show(cp)

When I type cp.[TAB], I get no options to .simplify() the expression, neither to solve it, and typing this "solve(cp,x)" gives an error. What is the problem?

Simplifying symbolic characteristic polynomial

I have a simple code, code,

sage: theta=var('theta');

theta=var('theta') sage: assume(theta,'real');

assume(theta,'real') sage: M=matrix([[1,0],[cos(theta),-i*sin(theta)]])/sqrt(2);

M=matrix([[1,0],[cos(theta),-i*sin(theta)]])/sqrt(2) sage: show(M)

show(M) sage: cp = characteristic_polynomial((M.conjugate_transpose())*M)

characteristic_polynomial((M.conjugate_transpose())*M) sage: show(cp)

show(cp)

When I type cp.[TAB], cp.[TAB], I get no options to .simplify() the expression, neither to solve it, and typing this "solve(cp,x)" solve(cp,x) gives an error. What is the problem?