#13364: Upgrade Maxima to 5.29.1
-------------------------------------+--------------------------------------
       Reporter:  kcrisman           |         Owner:  tbd                      
                              
           Type:  enhancement        |        Status:  new                      
                              
       Priority:  major              |     Milestone:  sage-5.6                 
                              
      Component:  packages           |    Resolution:                           
                              
       Keywords:  maxima spkg        |   Work issues:  fix doctests, build with 
latest ECL, fix `spkg-install`
Report Upstream:  N/A                |     Reviewers:  Karl-Dieter Crisman, 
François Bissey, Leif Leonhardy   
        Authors:  Jean-Pierre Flori  |     Merged in:                           
                              
   Dependencies:  #13324             |      Stopgaps:                           
                              
-------------------------------------+--------------------------------------

Comment (by dimpase):

 Replying to [comment:48 leif]:
 > Back to integration:
 >
 > Did anyone try using `cos()` instead?  After apparently "deep thinking",
 I for example get:
 > {{{
 > sage: integrate(abs(cos(x)),x,0,pi)
 > -1
 > sage: integrate(abs(cos(x)),x,0,2*pi)
 > 0
 > sage: integrate(abs(cos(x)),1/2*pi,3/2*pi)
 > -2
 > }}}
 >
 > Unless I'm missing something...

 same for 5.1. So I suppose this is a bug in Maxima 5.26, which remained in
 5.29. Oh dear. Both 5.26 and 5.29 give the following nonsense:
 {{{
 sage: from sage.symbolic.integration.external import maxima_integrator
 sage: g(x)=maxima_integrator(abs(cos(x)), x); g(x)
 -((2*sin(x)/((cos(x) + 1)*(sin(x)^2/(cos(x) + 1)^2 + 1)) -
 1)*sgn(sin(x)/(cos(x) + 1) - 1) - 2)*sgn(sin(x)/(cos(x) + 1) + 1)
 sage: g(0)
 1
 sage: g.limit(x=pi)
 x |--> 0
 }}}
 This, indeed, one gets -1...

 they also both "can" compute maxima_integrator(abs(sin(x)), x)...
 {{{
 sage: g(x)=maxima_integrator(abs(sin(x)), x); g(x)
 -(2*sin(x)*arctan(sin(x)/(cos(x) + 1))/(cos(x) + 1) -
 log(2))*sgn(1/(cos(x) + 1))*sgn(sin(x)) + log(sin(x)^2/(cos(x) + 1)^2 +
 1)*sgn(1/(cos(x) + 1))*sgn(sin(x)) - log(2*sin(x)^2/(cos(x) + 1)^2 +
 2)*sgn(1/(cos(x) + 1))*sgn(sin(x)) + 2*(sin(x)/((cos(x) +
 1)*(sin(x)^2/(cos(x) + 1)^2 + 1)) + arctan(sin(x)/(cos(x) +
 1)))*abs(sin(x))/abs(cos(x) + 1)
 sage: g(0)
 0
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13364#comment:51>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to