Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Problems with eigenvals(.)
PostPosted: Tue Jul 12, 2016 2:35 pm 

Joined: Sun Nov 15, 2015 12:13 am
Posts: 17
Hi all,
Why can't I get the eigenvalues by the following lines?
Code:
LIB "linalg.lib";
ring r=0,x,lp;
> matrix m[2][2]=1,2,3,4;
> print(m);
1,2,
3,4
> eigenvals(m);
[1]:
   _[1]=x2-5x-2
[2]:
   1


It seems that the output is the characteristic polynomial instead of the eigenvalues. Is it because it can't be solved in the field of rational numbers?! Let's try the complex numbers as the field of coefficients.
Code:
ring r=complex,x,lp;
// ** redefining r **
> matrix m[2][2]=1,2,3,4;
> print(m);
1,2,
3,4
> eigenvals(m);
   ? not implemented
   ? error occurred in or before STDIN line 9: `    return(system("eigenvals",jet(M,0)));`


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Sat Oct 21, 2017 7:35 pm
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group