#11594: Symbolic integration of abs() failure
------------------------+---------------------------------------------------
   Reporter:  mjo       |          Owner:  burcin
       Type:  defect    |         Status:  new   
   Priority:  major     |      Milestone:        
  Component:  calculus  |       Keywords:        
Work_issues:            |       Upstream:  N/A   
   Reviewer:            |         Author:        
     Merged:            |   Dependencies:        
------------------------+---------------------------------------------------
 Originally posted to the mailing list by Pedro Cruz (I hope no one minds
 me collecting these?):

 http://groups.google.com/group/sage-
 support/browse_thread/thread/4a24ce95e940820e

 Actual result:

 {{{
 sage: integrate(abs(x^2 - 1), x, -2, 2)
 integrate(abs(x^2 - 1), x, -2, 2)
 }}}

 Expected result:

 {{{
 sage: integrate(x^2 - 1, x, -2, -1) + integrate(1 - x^2, x, -1, 1) +
 integrate(x^2 - 1, x, 1, 2)
 4
 }}}

 If it's helpful, we can change the limits of integration to avoid the
 roots. This seems to appease the integrate function:

 {{{
 sage: integrate(x^2, x, -1, 1)
 2/3
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11594>
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