HeavisideTheta
The Heaviside step function: 0 for x < 0, 1 for x > 0, unevaluated at x = 0.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
HeavisideTheta!HeavisideTheta(x)0 if x < 0, 1 if x > 0, and unevaluated (stays symbolic) at x = 0.HeavisideTheta(x1, x2, …)the product of the individual steps -- 0 as soon as any argument is negative, unevaluated if none is negative but at least one is exactly 0.Typed signatures
| Type | Package | Applies |
|---|---|---|
(real, real*) -> number | analytic | always |
Details
- Deliberately distinct from compute-engine's own native
Heaviside, which this package does not touch:Heaviside(0)evaluates to 0 there, not Wolfram's convention.HeavisideThetais a separate head so both conventions stay available. - Also distinct from UnitStep (declared in unit-step.ts), which takes the value 1 at exactly 0 rather than staying unevaluated.
- D(HeavisideTheta(x), x) = DiracDelta(x).
Examples
Scope #
Properties #
About
| Examples | 12 |
|---|---|
| Checked against | Wolfram Language 9 agree3 differ |
| Crosswalk | Wolfram Language |