\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r396990 = x;
double r396991 = sin(r396990);
double r396992 = y;
double r396993 = sinh(r396992);
double r396994 = r396991 * r396993;
double r396995 = r396994 / r396990;
return r396995;
}
double f(double x, double y) {
double r396996 = y;
double r396997 = sinh(r396996);
double r396998 = x;
double r396999 = sin(r396998);
double r397000 = r396999 / r396998;
double r397001 = r396997 * r397000;
return r397001;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.6 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 14.6
Simplified0.7
rmApplied associate-/r/0.1
Final simplification0.1
herbie shell --seed 2019195
(FPCore (x y)
:name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
:herbie-target
(* (sin x) (/ (sinh y) x))
(/ (* (sin x) (sinh y)) x))