\cosh x \cdot \frac{\sin y}{y}\frac{-\sin y}{-\frac{y}{\cosh x}}double code(double x, double y) {
return (cosh(x) * (sin(y) / y));
}
double code(double x, double y) {
return (-sin(y) / -(y / cosh(x)));
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.1
rmApplied clear-num0.2
rmApplied div-inv0.4
Applied associate-/r*0.2
rmApplied clear-num0.2
Applied associate-/r/0.3
Applied associate-*r*0.3
Simplified0.3
rmApplied frac-2neg0.3
Applied clear-num0.3
Applied frac-times0.2
Simplified0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020078
(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)))