#12947: Bug in integrating x*cos(x^3)
-------------------------------------+-------------------------------------
Reporter: kcrisman | Owner: burcin
Type: defect | Status: positive_review
Priority: trivial | Milestone: sage-6.3
Component: calculus | Resolution:
Keywords: | Merged in:
Authors: Peter Bruin | Reviewers: Ralf Stephan
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/pbruin/12947-maxima_integral | 8274e4764945e773078535aabe9f262462416e57
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vbraun):
The `# abs tol` just changes how the floating point numbers are compared,
it doesn't know about complex numbers.
{{{
sage -t --long src/sage/interfaces/maxima_lib.py
**********************************************************************
File "src/sage/interfaces/maxima_lib.py", line 763, in
sage.interfaces.maxima_lib.MaximaLib.sr_integral
Failed example:
integrate(x*cos(x^3),(x,0,1/2)).n() # abs tol 1e-16
Expected:
0.124756040961038
Got:
0.124756040961038 - 1.38777878078145e-17*I
**********************************************************************
}}}
and on a different machine
{{{
sage -t --long src/sage/interfaces/maxima_lib.py
**********************************************************************
File "src/sage/interfaces/maxima_lib.py", line 763, in
sage.interfaces.maxima_lib.MaximaLib.sr_integral
Failed example:
integrate(x*cos(x^3),(x,0,1/2)).n() # abs tol 1e-16
Expected:
0.124756040961038
Got:
0.124756040961038 - 2.77555756156289e-17*I
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/12947#comment:23>
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.