\frac{\sin x \cdot \sinh y}{x}\frac{\frac{\sin x}{\frac{x}{2}} \cdot \sinh y}{2}double f(double x, double y) {
double r1045121 = x;
double r1045122 = sin(r1045121);
double r1045123 = y;
double r1045124 = sinh(r1045123);
double r1045125 = r1045122 * r1045124;
double r1045126 = r1045125 / r1045121;
return r1045126;
}
double f(double x, double y) {
double r1045127 = x;
double r1045128 = sin(r1045127);
double r1045129 = 2.0;
double r1045130 = r1045127 / r1045129;
double r1045131 = r1045128 / r1045130;
double r1045132 = y;
double r1045133 = sinh(r1045132);
double r1045134 = r1045131 * r1045133;
double r1045135 = r1045134 / r1045129;
return r1045135;
}




Bits error versus x




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