benilla-re systems structs docs

s_piDouble

global · cmath

Address
0x8030a8 · 8 bytes, up to 0x8030af
Type
const double
Meaning
Holds pi as a double, the factor of the double sine cardinal
Confidence
verified, proof two
Finding
cmath/scalars#shaping-functions

Finding: Shaping functions in cmath: scalars

0x456510(a, b) returns 1.0 when a ≥ b and 0.0 otherwise. 0x456540(x, lo, hi) is the difference of two of them, 1.0 inside [lo, hi). 0x456570(x, lo, hi) is (x − lo)/(hi − lo) clamped into [0, 1], a NaN giving 1.0. 0x4565c0 is the smooth step: 0.0 below lo, 1.0 at or above hi, else t²·(3 − 2t) for that t. 0x456620(a, b) is the C runtime's pow(a, b) (__CIpow, 0x73f940), 0x456640 is pow(a, 1/b), 0x456660(x, b) is pow(x, −log2(b)) through the fast logarithm 0x454c80, and 0x4566a0(x, g) is the gain built from it: 0.5·bias(2x, 1 − g) for x < 0.5 and 1 − 0.5·bias(2 − 2x, 1 − g) otherwise.

The derivation is in the doc.