Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Integrating DiracDelta in Mathematica: how to suppress ConditionalExpression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128338] Re: Integrating DiracDelta in Mathematica: how to suppress ConditionalExpression
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Mon, 8 Oct 2012 02:30:44 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20121007053235.39FF06863@smc.vnet.net>

Assuming[Element[q2, Reals],
 Integrate[DiracDelta[p - q2],
  {p, -Infinity, Infinity}]]

1

Integrate[DiracDelta[p - q2],
 {p, -Infinity, Infinity},
 Assumptions -> Element[q2, Reals]]

1

Integrate[DiracDelta[p - q2],
 {p, -Infinity, Infinity},
 GenerateConditions -> False]

1

Simplify[
 Integrate[DiracDelta[p - q2],
  {p, -Infinity, Infinity}],
 Element[q2, Reals]]


1


Bob Hanlon


On Sun, Oct 7, 2012 at 1:32 AM, Yaj <ybhattacharya at gmail.com> 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]
>



  • Prev by Date: Re: Trouble Loading Packages...
  • Next by Date: Re: using built in compiler
  • Previous by thread: Re: Integrating DiracDelta in Mathematica: how to suppress
  • Next by thread: Re: Integrating DiracDelta in Mathematica: how to suppress ConditionalExpression