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
charpoly error on matrices with pi #13711
Comments
comment:1
Okay, I think I found the source of the error; Sage tries to coerce the pyobjects of the symbolic constants into the Symbolic Ring, which doesn't work:
What would be the best way to fix this? It seems to be quite a major problem, since characteristic polynomials cannot at the moment be computed for any matrices with symbolic constants (it does work for |
comment:2
The right way of turning a constant into an expression is apparently via the
the system picks up the conversion. The double conversion that's happening here is a little sad, but the interface for One solution would be to give
so making that |
Attachment: trac_13711.patch.gz ensure that SymbolicConstant object convert into SR |
comment:4
Note that once you get a characteristic polynomial, it's likely wrong. See #14403 |
comment:5
Great! The patch works for me, and all tests pass on |
comment:6
Maybe it would be good to add doctests for |
Author: Nils Bruin |
Reviewer: Eviatar Bach |
comment:7
Agreed. |
comment:12
Just works fine on 6.6-rc2
Migt be because symbolic constants are now element of the symbolic ring:
Vincent |
Changed author from Nils Bruin to Vincent Delecroix |
Branch: public/13711 |
Changed reviewer from Eviatar Bach to none |
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Reviewer: Jeroen Demeyer |
Changed branch from public/13711 to |
Sage returns an error when attempting to calculate the characteristic polynomial of a matrix with pi:
This is fixed in sage-6.6. The branch just add a doctest to the method charpoly of symbolic matrices.
Component: linear algebra
Author: Vincent Delecroix
Branch/Commit:
005cd02
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/13711
The text was updated successfully, but these errors were encountered: