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




Bits error versus x




Bits error versus y
Results
| Original | 14.7 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 14.7
rmApplied *-un-lft-identity14.7
Applied times-frac0.2
Simplified0.2
rmApplied div-inv0.3
rmApplied sinh-def44.0
Applied associate-*l/44.0
Applied associate-*r/44.0
Simplified0.2
rmApplied un-div-inv0.1
Final simplification0.1
herbie shell --seed 2020174
(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))