\frac{\sin x \cdot \sinh y}{x}\frac{\sin x}{x} \cdot \sinh ydouble f(double x, double y) {
double r562047 = x;
double r562048 = sin(r562047);
double r562049 = y;
double r562050 = sinh(r562049);
double r562051 = r562048 * r562050;
double r562052 = r562051 / r562047;
return r562052;
}
double f(double x, double y) {
double r562053 = x;
double r562054 = sin(r562053);
double r562055 = r562054 / r562053;
double r562056 = y;
double r562057 = sinh(r562056);
double r562058 = r562055 * r562057;
return r562058;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.2 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 14.2
rmApplied associate-/l*0.7
rmApplied associate-/r/0.1
Final simplification0.1
herbie shell --seed 2020036
(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))