#16643: integrate() problem
---------------------------------------+------------------------
       Reporter:  rws                  |        Owner:
           Type:  defect               |       Status:  new
       Priority:  major                |    Milestone:  sage-6.3
      Component:  symbolics            |   Resolution:
       Keywords:  integration, maxima  |    Merged in:
        Authors:                       |    Reviewers:
Report Upstream:  N/A                  |  Work issues:
         Branch:                       |       Commit:
   Dependencies:                       |     Stopgaps:
---------------------------------------+------------------------
Description changed by nbruin:

Old description:

> I interrupted Sage after 5min of churning without result:
> {{{
> sage: f=diff((tan(x)+x)*e^tan(x),x)
> (tan(x)^2 + 1)*(x + tan(x))*e^tan(x) + (tan(x)^2 + 2)*e^tan(x)
> sage: integrate(f,x)
> }}}
> On a faster computer:
> {{{
> sage: %time integrate(f,x)
> CPU times: user 3min 58s, sys: 50 ms, total: 3min 58s
> Wall time: 3min 58s
> integrate((tan(x)^2 + 1)*(x + tan(x))*e^tan(x) + (tan(x)^2 + 2)*e^tan(x),
> x)
> }}}
> On the other hand, for the equivalent expression
> {{{
> sage: g=e^tan(x)*sec(x)^2*(tan(x)+x)+e^tan(x)*(sec(x)^2+1)
> sageRuntimeError: ECL says: In function CAR, the value of the first
> argument is
>   0
> which is not of the expected type LIST: %time integrate(g,x)
> }}}
> which happens in maxima/ECL with `abs_integrate` loaded, but not in
> maxima/SBCL. Upstream: [https://sourceforge.net/p/maxima/bugs/2781/]

New description:

 I interrupted Sage after 5min of churning without result:
 {{{
 sage: f=diff((tan(x)+x)*e^tan(x),x)
 (tan(x)^2 + 1)*(x + tan(x))*e^tan(x) + (tan(x)^2 + 2)*e^tan(x)
 sage: integrate(f,x)
 }}}
 On a faster computer:
 {{{
 sage: %time integrate(f,x)
 CPU times: user 3min 58s, sys: 50 ms, total: 3min 58s
 Wall time: 3min 58s
 integrate((tan(x)^2 + 1)*(x + tan(x))*e^tan(x) + (tan(x)^2 + 2)*e^tan(x),
 x)
 }}}
 On the other hand, for the equivalent expression
 {{{
 sage: g=e^tan(x)*sec(x)^2*(tan(x)+x)+e^tan(x)*(sec(x)^2+1)
 sage: %time integrate(g,x)
 RuntimeError: ECL says: In function CAR, the value of the first argument
 is
   0
 which is not of the expected type LIST
 }}}
 which happens in maxima/ECL with `abs_integrate` loaded, but not in
 maxima/SBCL. Upstream: [https://sourceforge.net/p/maxima/bugs/2781/]

--

--
Ticket URL: <http://trac.sagemath.org/ticket/16643#comment:5>
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.

Reply via email to