\cosh x \cdot \frac{\sin y}{y}\frac{\frac{1}{2}}{\frac{y}{\sin y \cdot \left(e^{-1 \cdot x} + e^{x}\right)}}double code(double x, double y) {
return (cosh(x) * (sin(y) / y));
}
double code(double x, double y) {
return (0.5 / (y / (sin(y) * (exp((-1.0 * x)) + exp(x)))));
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.1
rmApplied *-commutative0.1
rmApplied add-cube-cbrt0.2
Applied associate-*r*0.2
Taylor expanded around inf 0.1
Simplified0.2
Final simplification0.2
herbie shell --seed 2020078 +o rules:numerics
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:precision binary64
:herbie-target
(/ (* (cosh x) (sin y)) y)
(* (cosh x) (/ (sin y) y)))