Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11994
| From | Alex Krasnov <akrasnov@eecs.berkeley.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Integrating DiracDelta in Mathematica: how to suppress |
| Date | 2012-10-08 06:51 +0000 |
| Message-ID | <k4tt54$sdq$1@smc.vnet.net> (permalink) |
| References | <20121007053235.39FF06863@smc.vnet.net> |
| Organization | Time-Warner Telecom |
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
Alex
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]
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Integrating DiracDelta in Mathematica: how to suppress Alex Krasnov <akrasnov@eecs.berkeley.edu> - 2012-10-08 06:51 +0000
csiph-web