\frac{\sin x \cdot \sinh y}{x}\frac{\sin x}{x} \cdot \sinh ydouble f(double x, double y) {
double r550040 = x;
double r550041 = sin(r550040);
double r550042 = y;
double r550043 = sinh(r550042);
double r550044 = r550041 * r550043;
double r550045 = r550044 / r550040;
return r550045;
}
double f(double x, double y) {
double r550046 = x;
double r550047 = sin(r550046);
double r550048 = r550047 / r550046;
double r550049 = y;
double r550050 = sinh(r550049);
double r550051 = r550048 * r550050;
return r550051;
}




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 2020060
(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))