\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r588837 = x;
double r588838 = sin(r588837);
double r588839 = y;
double r588840 = sinh(r588839);
double r588841 = r588838 * r588840;
double r588842 = r588841 / r588837;
return r588842;
}
double f(double x, double y) {
double r588843 = y;
double r588844 = sinh(r588843);
double r588845 = x;
double r588846 = sin(r588845);
double r588847 = r588846 / r588845;
double r588848 = r588844 * r588847;
return r588848;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.6 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 14.6
Taylor expanded around inf 43.6
Simplified0.2
rmApplied div-inv0.3
Applied associate-*l*0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020047 +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))