Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxima is off by -1 with its charpoly #2036

Closed
mwhansen opened this issue Feb 3, 2008 · 5 comments
Closed

maxima is off by -1 with its charpoly #2036

mwhansen opened this issue Feb 3, 2008 · 5 comments

Comments

@mwhansen
Copy link
Contributor

mwhansen commented Feb 3, 2008

sage: matrix(SR, 5, [1..5^2]).charpoly().expand()
-x^5 + 65*x^4 + 250*x^3
sage: matrix(QQ, 5, [1..5^2]).charpoly()
x^5 - 65*x^4 - 250*x^3

Component: calculus

Issue created by migration from https://trac.sagemath.org/ticket/2036

@mwhansen mwhansen added this to the sage-2.10.2 milestone Feb 3, 2008
@mwhansen mwhansen changed the title maxima is off by -5 with it's charpoly maxima is off by -1 with its charpoly Feb 3, 2008
@jasongrout
Copy link
Member

comment:2

Maxima defines the charpoly as:

determinant (M - diagmatrix (length (M), x))

See http://maxima.sourceforge.net/docs/manual/en/maxima_25.html#SEC81

@williamstein
Copy link
Contributor

comment:3

That's a nonstandard definition so we have to work around it.

William

@jasongrout
Copy link
Member

Attachment: maxima-charpoly.patch.gz

@mwhansen
Copy link
Contributor Author

mwhansen commented Feb 7, 2008

comment:5

Looks good to me.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 7, 2008

comment:6

Merged in Sage 2.10.2.alpha0

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Feb 7, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants