Simplifing symbolic expressions in eigenvectors an eigenvalues.

10 views
Skip to first unread message

Luciano Robino

unread,
Apr 2, 2014, 11:45:26 PM4/2/14
to sage-s...@googlegroups.com
I recently was fooling around with the eigenvectors of a matrix. Here is the input:

var('p,q');
A = Matrix([[-2*cos(q),sin(q)*cos(p)-i*sin(q)*sin(p),0,0,0],[sin(q)*cos(p)+i*sin(q)*sin(p),-cos(q),sqrt(6)/2*(sin(q)*cos(p)-i*sin(q)*sin(p)),0,0],[0,sqrt(6)/2*(sin(q)*cos(p)+i*sin(q)*sin(p)),0,sqrt(6)/2*(sin(q)*cos(p)-i*sin(q)*sin(p)),0],[0,0,sqrt(6)/2*(sin(q)*cos(p)+i*sin(q)*sin(p)),cos(q),(sin(q)*cos(p)-i*sin(q)*sin(p))],[0,0,0,(sin(q)*cos(p)+i*sin(q)*sin(p)),2*cos(q)]]);
assume(p > 0);
assume(q > 0);
A.eigenvectors_right()

The solutions are obtained and seem to work perfectly. However the expressión of each eigenvector is huge and I have found no way to simplify it, despite being trigonometríc functions. Is there a way to simplify the eigenvector symbolic expressions?
Reply all
Reply to author
Forward
0 new messages