\cosh x \cdot \frac{\sin y}{y}\frac{\cosh x}{y} \cdot \sin y(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
(FPCore (x y) :precision binary64 (* (/ (cosh x) y) (sin 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) cosh(x)) / y) * ((double) sin(y))));
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.3 |
Initial program 0.1
rmApplied clear-num_binary640.2
rmApplied associate-/r/_binary640.3
Applied associate-*r*_binary640.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020210
(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)))