\cosh x \cdot \frac{\sin y}{y}\frac{\sin y \cdot \cosh x}{y}(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
(FPCore (x y) :precision binary64 (/ (* (sin y) (cosh x)) y))
double code(double x, double y) {
return ((double) (((double) cosh(x)) * (((double) sin(y)) / y)));
}
double code(double x, double y) {
return (((double) (((double) sin(y)) * ((double) cosh(x)))) / y);
}




Bits error versus x




Bits error versus y
Results
| Original | 0.2 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.2
rmApplied associate-*r/0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020198
(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)))