\frac{e^{x} - e^{-x}}{2}
\mathsf{fma}\left(0.008333333333333333, {x}^{5}, \mathsf{fma}\left(0.16666666666666666, {x}^{3}, x\right)\right)
(FPCore (x) :precision binary64 (/ (- (exp x) (exp (- x))) 2.0))
(FPCore (x) :precision binary64 (fma 0.008333333333333333 (pow x 5.0) (fma 0.16666666666666666 (pow x 3.0) x)))
double code(double x) {
return (exp(x) - exp(-x)) / 2.0;
}
double code(double x) {
return fma(0.008333333333333333, pow(x, 5.0), fma(0.16666666666666666, pow(x, 3.0), x));
}



Bits error versus x
Initial program 58.0
Simplified58.1
Taylor expanded in x around 0 0.6
Simplified0.6
Final simplification0.6
herbie shell --seed 2021224
(FPCore (x)
:name "Hyperbolic sine"
:precision binary64
(/ (- (exp x) (exp (- x))) 2.0))