#2452: [with patch, needs review] Heaviside step function, Dirac delta needed
-------------------------+--------------------------------------------------
 Reporter:  gfurnish     |       Owner:  gfurnish
     Type:  enhancement  |      Status:  assigned
 Priority:  critical     |   Milestone:  sage-4.1
Component:  symbolics    |    Keywords:          
 Reviewer:               |      Author:          
   Merged:               |  
-------------------------+--------------------------------------------------

Comment(by wdj):

 The testing didn't reveal any failures related to the patch. However, I'm
 also wondering about
 this output:

 {{{
 sage: f(x) = heaviside(x)+dirac_delta(x)
 sage: f(1)
 dirac_delta(1) + heaviside(1)
 sage: f = heaviside+dirac_delta
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/wdj/.sage/temp/hera/14949/_home_wdj__sage_init_sage_0.py in
 <module>()

 TypeError: unsupported operand type(s) for +: 'FunctionHeaviside' and
 'FunctionDiracDelta'
 }}}
 even though it has no problem evaluating them:

 {{{
 sage: heaviside(1); dirac_delta(1)
 1
 0
 }}}

 I don't see a problem with the integral methods but I'd prefer definite
 integrals over indefinite ones.
 In any case,

 {{{
 sage: dirac_delta.integral(0)
 heaviside(0)
 }}}
 seems odd.

 If you can address these comments I'd be happy to look at it again.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/2452#comment:9>
Sage <http://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