\frac{e^{x} - e^{-x}}{2}
\frac{\mathsf{fma}\left(0.016666666666666666, {x}^{5}, \mathsf{fma}\left(0.0003968253968253968, {x}^{7}, \mathsf{fma}\left(0.3333333333333333, {x}^{3}, x \cdot 2\right)\right)\right)}{2}
(FPCore (x) :precision binary64 (/ (- (exp x) (exp (- x))) 2.0))
(FPCore (x)
:precision binary64
(/
(fma
0.016666666666666666
(pow x 5.0)
(fma
0.0003968253968253968
(pow x 7.0)
(fma 0.3333333333333333 (pow x 3.0) (* x 2.0))))
2.0))double code(double x) {
return (exp(x) - exp(-x)) / 2.0;
}
double code(double x) {
return fma(0.016666666666666666, pow(x, 5.0), fma(0.0003968253968253968, pow(x, 7.0), fma(0.3333333333333333, pow(x, 3.0), (x * 2.0)))) / 2.0;
}



Bits error versus x
Initial program 58.2
Taylor expanded in x around 0 0.5
Applied egg-rr0.5
Final simplification0.5
herbie shell --seed 2022129
(FPCore (x)
:name "Hyperbolic sine"
:precision binary64
(/ (- (exp x) (exp (- x))) 2.0))