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.


 

> which is wrong
>
>>
>>> When I type
>>>
>>> integrate(dirac_delta(x),x,-1,1)
>>>
>>>
>>> I expected to get 1, as the documentation clearly implies.
>>>
>>> But instead I get a symbolic answer.
>>>
>>> How do I make sage return 1?
>>>
>>>
>>>
>>>
>>> cheers
>>>
>>> Robin
>>>
>>>
>>> --
>>> Robin Hankin\
>>
>>  

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

-- 
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-support
URL: http://www.sagemath.org

Reply via email to