\frac{e^{x} - e^{-x}}{2}\frac{\sinh x \cdot \log \left(e^{2}\right)}{2}(FPCore (x) :precision binary64 (/ (- (exp x) (exp (- x))) 2.0))
(FPCore (x) :precision binary64 (/ (* (sinh x) (log (exp 2.0))) 2.0))
double code(double x) {
return (exp(x) - exp(-x)) / 2.0;
}
double code(double x) {
return (sinh(x) * log(exp(2.0))) / 2.0;
}



Bits error versus x
Results
Initial program 58.0
rmApplied add-log-exp_binary6458.3
Applied add-log-exp_binary6458.4
Applied diff-log_binary6458.4
Simplified58.4
rmApplied sinh-undef_binary6458.4
Applied exp-prod_binary6458.4
Applied log-pow_binary640.0
Final simplification0.0
herbie shell --seed 2021166
(FPCore (x)
:name "Hyperbolic sine"
:precision binary64
(/ (- (exp x) (exp (- x))) 2.0))