10.2. Vectorizing mathematical functions#
The aim is to implement mathematical functions like exp
, sin
and cos
using the SIMD
types.
References:
Stephen L. Moshier: Methods and Programs For Mathematical Functions https://www.moshier.net/methprog.pdf
CEPHES MATHEMATICAL FUNCTION LIBRARY https://www.netlib.org/cephes/
10.2.1. How to implement \(sin\) and \(cos\) ?#
Local approximation by polynomials
Taylor, Chebyshev interpolation, …
Global approximation
10.2.2. What the f..k?#
Quake III Arena
\[
\frac{1}{\sqrt{x}}
\]
Newton with good starting values
10.2.3. Exercise#
Implement the \(exp\) function for SIMD
types.