Skip to main content

Module pi_constants

Module pi_constants 

Source
Expand description

π-based scale factors to avoid power-of-2 resonance

Constants§

PHI_APPROX
Golden ratio approximation from π
PI_DIGITS
First 16 digits of π for deterministic seeding
PI_FRAC
Anti-resonance offset derived from π fractional part
PI_SCALE
Scale factor that avoids 2^n boundaries

Functions§

anti_resonance
Compute anti-resonance offset for n-bit quantization
jitter
π-based jitter for tie-breaking in rounding