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

Commit

Permalink
Trac 12947: add doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbruin committed May 30, 2014
1 parent a3c4cf3 commit 35f6081
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sage/interfaces/maxima_lib.py
Expand Up @@ -724,12 +724,18 @@ def sr_integral(self,*args):
4
This definite integral returned zero (incorrectly) in at least
maxima-5.23. The correct answer is now given (:trac:`11591`)::
Maxima 5.23. The correct answer is now given (:trac:`11591`)::
sage: f = (x^2)*exp(x) / (1+exp(x))^2
sage: integrate(f, (x, -infinity, infinity))
1/3*pi^2
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()
0.124756040961038
"""
try:
return max_to_sr(maxima_eval(([max_integrate],[sr_to_max(SR(a)) for a in args])))
Expand Down

0 comments on commit 35f6081

Please sign in to comment.