1

I would like to define HeavisideTheta[0] and HeavisideTheta[0.] (as apparently Mathematica won't recognize these two as identical) to be always in my notebook identically equal to 1. What would be a quick and clean way to do this instead of constantly having to add rules in my code?

Mirko Aveta
  • 2,192
  • 11
  • 26

1 Answers1

4

Global assumption for a notebook might be an option

$Assumptions = HeavisideTheta[0] == 1 && HeavisideTheta[0.] == 1;
HeavisideTheta[0]
HeavisideTheta[0] // Simplify
HeavisideTheta[0.]
HeavisideTheta[0.] // Simplify

enter image description here

Mauricio Fernández
  • 5,463
  • 21
  • 45