Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11994 > unrolled thread

Re: Integrating DiracDelta in Mathematica: how to suppress

Started byAlex Krasnov <akrasnov@eecs.berkeley.edu>
First post2012-10-08 06:51 +0000
Last post2012-10-08 06:51 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Integrating DiracDelta in Mathematica: how to suppress Alex Krasnov <akrasnov@eecs.berkeley.edu> - 2012-10-08 06:51 +0000

#11994 — Re: Integrating DiracDelta in Mathematica: how to suppress

FromAlex Krasnov <akrasnov@eecs.berkeley.edu>
Date2012-10-08 06:51 +0000
SubjectRe: Integrating DiracDelta in Mathematica: how to suppress
Message-ID<k4tt54$sdq$1@smc.vnet.net>
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]
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web