As the following figure described, why does HeavisideTheta give different value at the point 0 and 0.? Especially at the coordinate origin, one gives the value 1 and another 0 when HeavisideTheta[0]=0. Isn't 0 and 0. the same point?
Note: DiracDelta gives similar result at 0 and 0. as the following figure.
Thanks!
$Version
Integrate[D[HeavisideTheta[z], z], {z, 0, Infinity}]
Integrate[D[HeavisideTheta[z], z], {z, 0., Infinity}]
Integrate[D[HeavisideTheta[z], z], {z, 0, Infinity}] /.
HeavisideTheta[0] -> 0
Integrate[D[HeavisideTheta[z], z], {z, 0., Infinity}] /.
HeavisideTheta[0.] -> 0


Integrate[DiracDelta[z], {z, 0, Infinity}]andIntegrate[DiracDelta[z], {z, 0., Infinity}]give the same results. So it might be that this behavior is a consequence of howDiracDeltahandles exact vs. numerical inputs. – Michael Seifert Jan 23 '24 at 14:30HeavisideThetais an implementation of the antiderivative of $\delta$-distribution in Mathematica. This is a distribution too and the integralIntegrate[D[HeavisideTheta[z], z], {z, 0, Infinity}]makes no sense in traditional math (e.g, see Wiki for info).HeavisideTheta[0]is an invetion of Mathematica developers, not a math notion. – user64494 Jan 23 '24 at 14:39NIntegrate[DiracDelta[x], {x, -2, 1}]. As I know it, most of applications of distributions lie in ODEs and PDEs and don't require any integration. – user64494 Jan 23 '24 at 14:53HeavisideThetais0andHeavisideTheta[0]makes no sense. The developers wrongly changeHeavisideThetaby a usual functionUnitStep. That's all. – user64494 Jan 23 '24 at 15:04HeavisideTheta. Probably there won't be a simple solution like setting an option or turning to another built-in function (you're looking for something like this, right?) I believe the easiest solution is coding a function that behaves as expected all by oneself (as I've done under this question of yours ). – xzczd Jan 24 '24 at 03:08