\frac{\sin x \cdot \sinh y}{x}\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}double f(double x, double y) {
double r507894 = x;
double r507895 = sin(r507894);
double r507896 = y;
double r507897 = sinh(r507896);
double r507898 = r507895 * r507897;
double r507899 = r507898 / r507894;
return r507899;
}
double f(double x, double y) {
double r507900 = x;
double r507901 = sin(r507900);
double r507902 = r507901 / r507900;
double r507903 = 1.0;
double r507904 = y;
double r507905 = sinh(r507904);
double r507906 = r507903 / r507905;
double r507907 = r507902 / r507906;
return r507907;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.0 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 14.0
rmApplied associate-/l*0.8
rmApplied div-inv0.9
Applied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2020089 +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))