Luciano Robino
unread,Apr 2, 2014, 11:45:26 PM4/2/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?