\frac{\sin x \cdot \sinh y}{x}\sin x \cdot \frac{\sinh y}{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) sin(x)) * ((double) (((double) sinh(y)) / x))));
}




Bits error versus x




Bits error versus y
Results
| Original | 14.0 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 14.0
rmApplied *-un-lft-identity14.0
Applied times-frac0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020150
(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))