Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac 12947: handle numerical noise correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbruin committed Jul 18, 2014
1 parent 8274e47 commit 72706eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sage/interfaces/maxima_lib.py
Expand Up @@ -760,8 +760,11 @@ def sr_integral(self,*args):
The following integral was computed incorrectly in versions of
Maxima before 5.27 (see :trac:`12947`)::
sage: integrate(x*cos(x^3),(x,0,1/2)).n() # abs tol 1e-16
sage: a = integrate(x*cos(x^3),(x,0,1/2)).n()
sage: a.real()
0.124756040961038
sage: a.imag().abs() < 3e-17
True
"""
try:
Expand Down

0 comments on commit 72706eb

Please sign in to comment.