Ramp
The ramp function: x for x >= 0, 0 for x < 0.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Ramp✓Ramp(x)max(x, 0).Typed signatures
| Type | Package | Applies |
|---|---|---|
(real) -> number | analytic | always |
Details
- Ramp(x) = x * UnitStep(x) -- continuous, so Ramp(0) = 0 needs no special case.
- D(Ramp(x), x) = Piecewise({{0, x < 0}, {1, x > 0}}, Indeterminate) -- NOT UnitStep(x), which would be defined (as 1) at x = 0; Ramp's own slope there is undefined.
Plot
Examples
Scope #
An exact irrational input at or above 0 is handed back untouched
live ↗InOut
Known value · Ramp(v) = v for v ≥ 0, exactly -- π is never rounded
Properties #
About
| Examples | 7 |
|---|---|
| Checked against | Wolfram Language 7 agree |
| Crosswalk | Wolfram Language |