\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r407931 = x;
double r407932 = sin(r407931);
double r407933 = y;
double r407934 = sinh(r407933);
double r407935 = r407932 * r407934;
double r407936 = r407935 / r407931;
return r407936;
}
double f(double x, double y) {
double r407937 = y;
double r407938 = sinh(r407937);
double r407939 = x;
double r407940 = sin(r407939);
double r407941 = r407940 / r407939;
double r407942 = r407938 * r407941;
return r407942;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.0 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 14.0
Simplified0.8
rmApplied associate-/r/0.1
Final simplification0.1
herbie shell --seed 2019196
(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))