#4721: [with patch; needs review] Indefinite integration for piecewise functions
-------------------------+--------------------------------------------------
 Reporter:  pbutler      |       Owner:  burcin    
     Type:  enhancement  |      Status:  new       
 Priority:  minor        |   Milestone:  sage-3.2.2
Component:  calculus     |    Keywords:            
-------------------------+--------------------------------------------------
 It would be nice to be able to do indefinite integration of piecewise
 functions in Sage.

 I've created a patch which does this. I have made the default behavior of
 the integral() function of a piecewise function be to return the
 indefinite integral, and the definite integral is returned only when
 definite=True is supplied.

 {{{
 sage: pw = Piecewise([[(0,1), x*2], [(1,2), x + 3]])
 sage: pw.integral()
 Piecewise defined function with 2 parts, [[(0, 1), x^2], [(1, 2), (x^2 +
 6*x)/2 - 5/2]]
 sage: pw.integral(definite=True)
 11/2
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4721>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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