Hyperbolic Tangent
📐 Definition
Section titled “📐 Definition”For ,
Domain and Codomain
Section titled “Domain and Codomain”is analytic on except at the poles of , i.e. for . For real inputs, .
⚙️ Key Properties
Section titled “⚙️ Key Properties”Parity and Limits
Section titled “Parity and Limits”Derivative
Section titled “Derivative”Exponential Approach to the Plateaus
Section titled “Exponential Approach to the Plateaus”As , , and as , .
🎯 Special Cases and Limits
Section titled “🎯 Special Cases and Limits”Near the origin, . The principal singularities in the complex plane occur at .
🔗 Related Functions
Section titled “🔗 Related Functions”Logistic sigmoid is an affine rescaling; smooth saturation functions generalize the bounded response.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield uses tanh as a bounded, smooth nonlinearity in both operator kernels and visualization:
- Analytic warp: the
analytic_warpoperator has a TANH profile; its gradient uses , making it a safe “LEVEL0” warp for smooth bounded deformation. - Remainder: the
remainderoperator supports atanhnonlinearity option before differencing, useful for saturating large amplitudes while keeping the response smooth. - Visualization: the GPU phase view uses
tanhto compress magnitude into a bounded value channel for display (helps handle large dynamic ranges).
Historical Foundations
Section titled “Historical Foundations”📜 Hyperbolic Functions
Section titled “📜 Hyperbolic Functions”Hyperbolic functions arose as analogues of trigonometric functions for the geometry of hyperbolas and became standard tools in analysis and differential equations through 18th–19th century development.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”is a canonical smooth saturating nonlinearity and a standard building block in numerical modeling, optimization, and signal processing.
📚 References
Section titled “📚 References”- NIST Digital Library of Mathematical Functions (DLMF), §4
- Abramowitz & Stegun, Handbook of Mathematical Functions