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 <[email protected]>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 >> [email protected] >> >> -- >> 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 >> > > 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
