#17328: incomplete gamma in integral is wrong
----------------------------+------------------------
Reporter: kcrisman | Owner:
Type: defect | Status: new
Priority: critical | Milestone: sage-6.4
Component: calculus | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Comment (by pbruin):
I can't seem to reproduce this in Sage 6.4:
{{{
sage: numerical_integral(1/log(x)^2,2,3)
(1.273097216447114, 1.4134218422857824e-14)
sage: N(integral(1/log(x)^2,(x,2,3)))
1.27309721644711
}}}
In fact, the incomplete gamma function is evaluated using PARI, and the
bug appears to have been fixed by the latest PARI upgrade (see #15767):
{{{
gp-2.5 > incgam(-1,-1)
%1 = -1.5817775437849803404714887501837998073
gp-2.5 > incgam(-1,-log(3)) - incgam(-1,-log(2))
%2 = 0.54869101686030432559293241097969276965
gp-2.7 > incgam(-1,-1)
%1 = -0.82316401210310847989376653702102822882 +
3.1415926535897932384626433832795028842*I
gp-2.7 > incgam(-1,-log(3)) - incgam(-1,-log(2))
%2 = 1.2730972164471138219094623429485715030 + 0.E-37*I
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17328#comment:3>
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.