#15921: work around Maxima fpprintprec bug and other ARM-specific problems
-------------------------------------+-------------------------------------
Reporter: dimpase | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.3
Component: calculus | Resolution:
Keywords: Maxima, | Merged in:
fpprintprec, ARM | Reviewers:
Authors: | Work issues:
Report Upstream: Reported | Commit:
upstream. Developers acknowledge | 079bb9af4f12892268a19f0d218ac96bd72466f4
bug. | Stopgaps:
Branch: |
u/dimpase/arm_fixes_etc |
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by pbruin):
Could it be solved by setting Maxima's `fpprintprec` option to the correct
value depending on the platform? I think `RealField(53)` prints numbers
with 15 significant digits. In Maxima with ECL on x86_64 (`sage
--maxima`), I get
{{{
(%i19) fpprintprec: 13;
(%o19) 13
(%i20) elliptic_e(0.5, 0.1);
(%o20) .49801139449883
(%i21) fpprintprec: 14;
(%o21) 14
(%i22) elliptic_e(0.5, 0.1);
(%o22) .498011394498832
(%i23) fpprintprec: 15;
(%o23) 15
(%i24) elliptic_e(0.5, 0.1);
(%o24) .4980113944988315
(%i25) fpprintprec: 16;
(%o25) 16
(%i26) elliptic_e(0.5, 0.1);
(%o26) .49801139449883153
}}}
so `fpprintprec` should presumably be set to 14. Maybe we could do
something like first setting `fpprintprec` to 15, count with how many
digits Maxima prints `1/3.0`, and then adjusting `fpprintprec` by how much
this differs from 15.
--
Ticket URL: <http://trac.sagemath.org/ticket/15921#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.