Expand description
Fast polynomial approximations for transcendental functions
This module provides SIMD-accelerated polynomial approximations for various transcendental functions (tanh, sinh, cosh, sin, cos, tan). These are used as fallbacks when SLEEF is not available.
Accuracy targets:
- tanh, sinh, cosh: ~1e-6 relative error
- sin, cos, tan: ~1e-6 relative error
Performance targets:
- 3-5x faster than scalar auto-vectorization
- 60-80% of SLEEF performance
Functions§
- simd_
cos_ f64_ poly - Fast cos approximation using Taylor series
- simd_
cosh_ f64_ poly - Fast cosh approximation using Taylor series
- simd_
sin_ f64_ poly - Fast sin approximation using Taylor series
- simd_
sinh_ f64_ poly - Fast sinh approximation using Taylor series
- simd_
tan_ f64_ poly - Fast tan approximation using sin/cos ratio
- simd_
tanh_ f32_ poly - Fast tanh approximation for f32
- simd_
tanh_ f64_ poly - Fast tanh approximation using Padé approximant