       Re: Integrating DiracDelta in Mathematica: how to suppress ConditionalExpression

• To: mathgroup at smc.vnet.net
• Subject: [mg128341] Re: Integrating DiracDelta in Mathematica: how to suppress ConditionalExpression
• From: Bill Rowe <readnews at sbcglobal.net>
• Date: Mon, 8 Oct 2012 02:31: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

```On 10/7/12 at 1:32 AM, ybhattacharya at gmail.com (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:= Integrate[DiracDelta[p - q2], {p, -Infinity, Infinity}]

>Out:= ConditionalExpression[1, q2 \[Element] Reals]

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

Out= 1

In:= Integrate[DiracDelta[p - q2], {p, -Infinity, Infinity},
Assumptions -> q2 \[Element] Reals]

Out= 1

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

Out= 1

```

• Prev by Date: Re: Integrating DiracDelta in Mathematica: how to suppress ConditionalExpression
• Next by Date: Re: Clearing all variables and definitions: i.e. "resetting" mathematica
• Previous by thread: Re: Integrating DiracDelta in Mathematica: how to suppress ConditionalExpression
• Next by thread: Re: Open interval