On Monday, June 25, 2012 11:06:28 AM UTC-4, kcrisman wrote:
>
>
>
> On Sunday, June 24, 2012 11:00:48 PM UTC-4, Slumberland wrote:
>>
>> I don't think Sage knows what it is doing with the dirac_delta.  Since it 
>> *thinks* it does, does this qualify as a bug?
>>
>> For example,  Sage is quite happy to return an answer to
>> sage: f = dirac_delta(x)
>> sage: n(integrate(f,x,-infinity,infinity))
>> 0
>>
>>
> Yes, please do submit a Trac ticket for this and anything else mentioned 
> in this thread.  A few functions like this were added, but not really 
> integrated with other stuff in Sage very well.  Maxima apparently does not 
> currently have the Dirac delta "function" (distribution?) anywhere except 
> in pw.mac, which we do not use.
>
>
>  
>





>>> You can use sympy as -
>>>
>>> >>> import sympy
>>> >>> sympy.integrate(sympy.DiracDelta(x), (x,-1,1))
>>> 1
>>>
>>>

And we should be able to do 

sage: integrate(f,x,-oo,oo,algorithm='sympy')


but

NotImplementedError: SymPy function 'dirac_delta' doesn't exist

so there is definitely some work that could be done here. 

>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to