Andrew Moylan
2007-04-04 08:17:28 UTC
Here is an integral that I expect Mathematica to evaluate to 1:
Integrate[Piecewise[{{DiracDelta[x], -1 < x < 1}}, 0],
{x, -Infinity, Infinity}]
However, Mathematica 5.2 (Windows) gives the answer as 0. Here's a
similar integral that I also expect to evaluate to 1:
Integrate[Piecewise[{{DiracDelta[x-1/2], -1 < x < 1}}, 0],
{x, -Infinity, Infinity}]
For this integral, Mathematica doesn't return 0. It returns the
following:
Integrate[Piecewise[{{2*DiracDelta[-1 + 2*x], -1 < x < 1}},
0], {x, -Infinity, Infinity}]
Can anyone help me understand what's happening here?
Cheers,
Andrew
Integrate[Piecewise[{{DiracDelta[x], -1 < x < 1}}, 0],
{x, -Infinity, Infinity}]
However, Mathematica 5.2 (Windows) gives the answer as 0. Here's a
similar integral that I also expect to evaluate to 1:
Integrate[Piecewise[{{DiracDelta[x-1/2], -1 < x < 1}}, 0],
{x, -Infinity, Infinity}]
For this integral, Mathematica doesn't return 0. It returns the
following:
Integrate[Piecewise[{{2*DiracDelta[-1 + 2*x], -1 < x < 1}},
0], {x, -Infinity, Infinity}]
Can anyone help me understand what's happening here?
Cheers,
Andrew