UnitBox
The unit box function: 1 on the closed [-1/2, 1/2], 0 outside.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
UnitBox✓UnitBox(x)1 for -1/2 <= x <= 1/2, 0 otherwise.UnitBox(x1, x2, …)the product of the unit boxes -- 0 as soon as any argument is outside its own [-1/2, 1/2].Typed signatures
| Type | Package | Applies |
|---|---|---|
(real, real*) -> number | analytic | always |
Details
- Defined everywhere, including the boundary -- unlike HeavisidePi, the same rectangular pulse shape but left unevaluated at x = ±1/2 instead of closed there. UnitBox and HeavisidePi differ exactly at the boundary.
- D(UnitBox(x), x) = Piecewise({{Indeterminate, x == 1/2 || x == -1/2}}, 0) -- 0 away from the jump, undefined exactly at the two points where UnitBox is discontinuous.
Examples
1 more kept as data, checked against the oraclesBasic #
Scope #
An exact irrational operand: the boundary decision is certified, not a premature float
live ↗InOut
Known value · π/4 > 1/2
live ↗
InOut
Properties #
About
| Examples | 17 |
|---|---|
| Checked against | Wolfram Language 17 agree |
| Crosswalk | Wolfram Language |