-
-
Notifications
You must be signed in to change notification settings - Fork 489
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 automatically simplifies floats to rationals #2400
Comments
comment:1
Following a lead from the mailing list, I added "keepfloat: true" to the init_code for the maxima interfaces. The patch is attached. |
comment:2
Jason, please improve the comment "# no ascii art output" to indicate what the new flag does. |
comment:3
Attachment: keepfloat.patch.gz I replaced the patch with an updated one addressing dmharvey's concerns. The patch is ready to be reviewed again. |
comment:4
This patch fails doctests on
(There might be more; I don't know, I killed it.) |
comment:5
The code itself is fine but symbolic matrices with keepfloat appear to be broken in Maxima. When/if symbolic matrices do not use maxima this will be a good patch.
|
comment:6
The matrixexp command seems to work fine in maxima (see below). How do you reproduce your error? (can you give a short sage session that gives the error above?)
|
comment:7
Here is a way to reproduce the above error:
|
comment:8
This post talks about the weakness of the maxima linear algebra functionality and explicitly includes the above error: http://www.ma.utexas.edu/pipermail/maxima/2006/003031.html |
comment:9
The last post at http://www.nabble.com/matrix-exponential--td6816907.html suggests using the "diag" package instead of the "linearalgebra" package for calculating the matrix exponential. This works with keepfloat:
|
comment:10
The maxima matrixexp function has problems with floating point entries. I don't think that should keep us from fixing wrong output (or at least, unnecessarily rounded) from maxima due to their rounding floating points to rationals. I've attached a patch which works around the problems in the matrixexp function by specifying keepfloat: false for that one command. I've also added a note talking about maxima automatically rounding floating point numbers to the docstring for matrixexp. |
Attachment: matrixexp-keepfloat.patch.gz apply on top of keepfloat.patch |
comment:12
These two patches apply against 2.10.4.alpha0, fix the problems, and pass tests for me. |
comment:13
Merged both patches in Sage 2.10.4.rc0 |
comment:14
For some reason this hack doesn't work anymore in Maxima 5.30, see #13973. |
Component: interfaces
Issue created by migration from https://trac.sagemath.org/ticket/2400
The text was updated successfully, but these errors were encountered: