Ticket #6716 (closed defect: invalid)
elliptic_e(0.5, 0.1) test failure on Solaris SPARC (error about 0.04%)
| Reported by: | drkirkby | Owned by: | drkirkby |
|---|---|---|---|
| Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
| Component: | algebra | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Here's a failure observed on a sun4u machine with Sage Version 4.1.1.rc0, Release Date: 2009-07-29, but with updates to some packages including ECL 9.8.1 (#6564) and Maxima 5.19.1
sage -t "devel/sage/sage/functions/special.py"
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1.rc0/devel/sage/sage/functions/special.py", line 1208:
sage: elliptic_e(0.5, 0.1)
Expected:
0.498011394499
Got:
0.497801100392
**********************************************************************
The result is similar to that expected, but not identical. I tried this in Mathematica 7.0 too, but using 1/2 instead of 0.5, and 1/10 instead of 0.1. Then asked for the result with 50 digits of precision.
In[4]:= N[EllipticE[1/2,1/10],50] Out[4]= 0.49801139449883153311546104061744810584963105068054
I know it would be unwise to trust Mathematica fully, but the Mathematica result does agree much more closely with what the doctest is expecting than it does the answer on Solaris. The difference between the answer from Mathematica and that from Sage on Solaris is -0.000210294 or around 0.04%.
Change History
comment:2 Changed 4 years ago by drkirkby
- Component changed from algebra to solaris
- Milestone set to sage-4.1.2
I'm changing the component from 'algebra' to 'solaris', as this seems to be specific to Solaris.
comment:3 Changed 4 years ago by drkirkby
- Component changed from solaris to algebra
Juanjo, the main developer of ECL has discovered a bug in ECL 9.8.1, which was effecting both elliptic_e and elliptic_eu. A patch, which corrects both this and #6719 can be found on #6719
As far as I am concerned, this, and trac #6719 (which effected elliptic_eu) can now be closed. Doctest
sage -t "devel/sage/sage/functions/special.py"
now passes.
I will produce a revised ecl .spkg file, as per trac #6564
comment:4 Changed 4 years ago by mvngu
- Status changed from new to closed
- Resolution set to invalid
- Milestone changed from sage-4.1.2 to sage-duplicate/invalid/wontfix
Closed as suggested by David Kirkby at this sage-devel thread.

Just to add a few more comments.
Dave