The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Integrating DiracDelta in Mathematica: how to suppress
Replies: 3   Last Post: Oct 9, 2012 12:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alex Krasnov

Posts: 15
Registered: 10/3/12
Re: Integrating DiracDelta in Mathematica: how to suppress
Posted: Oct 8, 2012 2:51 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Look into assumptions. If q2 is in fact real, then you can use the
following code:

In: Assuming[Element[q2, Reals], Integrate[DiracDelta[p - q2], {p, -Infinity, Infinity}]]
Out: 1


On Sun, 7 Oct 2012, Yaj wrote:

> For the integral shown below, how do I get Mathematica to output only the "correct" answer as 1 (for future steps in the notebook) and i.e. have Mathematica NOT OUTPUT the ConditionalExpresssion that q2 is real etc?
> In[5]:= Integrate[DiracDelta[p - q2], {p, -Infinity, Infinity}]
> Out[5]:= ConditionalExpression[1, q2 \[Element] Reals]

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.