Log-Absolute Value
📐 Definition
Section titled “📐 Definition”For ,
captures the logarithm of the magnitude while discarding sign.
Domain and Codomain
Section titled “Domain and Codomain”Defined for nonzero real inputs; outputs are real and handle wide dynamic ranges compactly.
⚙️ Key Properties
Section titled “⚙️ Key Properties”🎯 Special Values and Limits
Section titled “🎯 Special Values and Limits”As , , and as , .
🔗 Related Functions
Section titled “🔗 Related Functions”Absolute value supplies the magnitude and provides the sign-sensitive logarithm on . Log-sum-exp is a separate stabilized log-domain primitive used for aggregating exponentials.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield primarily uses log-of-magnitude ideas via stabilized forms rather than a raw log(|x|):
- Remainder operator:
SIM_REMAINDER_NONLINEARITY_LOG_ABSevaluateslog1p(|x|/\epsilon)to provide a safe “log magnitude” response for both small and large values. - Thermostat soft clamps: smooth clamp logic uses
log1p(exp(\cdot)), which is closely related to log-of-magnitude compression in practice (avoids hard clipping artifacts). - Diagnostics: several statistics/metrics operate in log space (e.g. spectral entropy uses
logover normalized power), though not always aslog(|x|)specifically.
Historical Foundations
Section titled “Historical Foundations”📜 Logarithmic Scales
Section titled “📜 Logarithmic Scales”Logarithmic mappings of magnitude are a standard technique for representing wide dynamic ranges, appearing across scientific measurement and signal analysis.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”is frequently used as a numerically stable way to compare multiplicative magnitudes additively, while intentionally discarding sign information.
📚 References
Section titled “📚 References”- Bracewell, The Fourier Transform and Its Applications
- NIST Digital Library of Mathematical Functions (DLMF), §4