# Singular

 Page 1 of 1 [ 1 post ]
 Print view | E-mail friend Previous topic | Next topic
Author Message
 Post subject: Problems with eigenvals(.)Posted: Tue Jul 12, 2016 2:35 pm

Joined: Sun Nov 15, 2015 12:13 am
Posts: 20
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)));`

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 1 post ]

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

 It is currently Sat Oct 20, 2018 5:24 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group