\frac{\sin x \cdot \sinh y}{x}\frac{\sin x}{x} \cdot \sinh ydouble f(double x, double y) {
double r450529 = x;
double r450530 = sin(r450529);
double r450531 = y;
double r450532 = sinh(r450531);
double r450533 = r450530 * r450532;
double r450534 = r450533 / r450529;
return r450534;
}
double f(double x, double y) {
double r450535 = x;
double r450536 = sin(r450535);
double r450537 = r450536 / r450535;
double r450538 = y;
double r450539 = sinh(r450538);
double r450540 = r450537 * r450539;
return r450540;
}




Bits error versus x




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