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?
Asked
Active
Viewed 941 times
1
Mirko Aveta
- 2,192
- 11
- 26
1 Answers
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
Mauricio Fernández
- 5,463
- 21
- 45

/.HeavisideTheta[0]-> 1it manages to do that. @MauricioLobos – Mirko Aveta Dec 02 '16 at 10:24Unprotectand thenProtect, but it's not recommended. – Dec 02 '16 at 11:08$Assumptions = HeavisideTheta[0] == 1andHeavisideTheta[0] // Simplifywork for you? – Mauricio Fernández Dec 02 '16 at 12:06HeavisideTheta[0.]. – Mirko Aveta Dec 02 '16 at 12:25