TriangleWave
The triangle wave: period 1, default range {-1, 1}, sine-like phase (0 at x = 0, peak at x = 1/4).
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
TriangleWave✓TriangleWave(x)a triangular approximation to sin(2Pix) -- 0 at x = 0, 1 at x = 1/4, 0 at x = 1/2, -1 at x = 3/4.TriangleWave({min, max}, x)the triangle wave rescaled to vary from min to max, unit period.Typed signatures
| Type | Package | Applies |
|---|---|---|
(real | vector<real^2>, real?) -> number | analytic | always |
Details
- Default range is {-1, 1} with a sine-like phase, NOT the [0, 1] tent UnitTriangle/HeavisideLambda use -- TriangleWave(0) = 0, not 1.
- Continuous everywhere, including at the peak and trough.
- The range form takes the range FIRST, x second -- TriangleWave({min, max}, x) -- matching SawtoothWave and SquareWave.
Examples
Basic #
Scope #
An exact irrational input stays exact through the affine branch
live ↗InOut
Known value · f = Frac(-π) = 4 - π ∈ (3/4, 1), so TriangleWave = 4f - 4
About
| Examples | 7 |
|---|---|
| Checked against | Wolfram Language 7 agree |
| Crosswalk | Wolfram Language |