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

which is wrong.

On Monday, July 11, 2011 7:43:16 AM UTC-7, Rajeev wrote:
>
> On Mon, Jul 11, 2011 at 9:43 AM, robin hankin <hankin.ro...@gmail.com>wrote:
>
>> Hi.
>>
>> 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
>> Uncertainty Analyst
>> hankin.ro...@gmail.com
>>
>> --
>> 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
>>
>
> 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 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