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




Bits error versus x




Bits error versus y
Results
| Original | 13.8 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 13.8
rmApplied *-commutative13.8
Applied associate-/l*0.1
Final simplification0.1
herbie shell --seed 2020114 +o rules:numerics
(FPCore (x y)
:name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
:precision binary64
:herbie-target
(* (sin x) (/ (sinh y) x))
(/ (* (sin x) (sinh y)) x))