\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 r511031 = x;
double r511032 = sin(r511031);
double r511033 = y;
double r511034 = sinh(r511033);
double r511035 = r511032 * r511034;
double r511036 = r511035 / r511031;
return r511036;
}
double f(double x, double y) {
double r511037 = x;
double r511038 = sin(r511037);
double r511039 = 2.0;
double r511040 = r511037 / r511039;
double r511041 = r511038 / r511040;
double r511042 = y;
double r511043 = sinh(r511042);
double r511044 = r511041 * r511043;
double r511045 = r511044 / r511039;
return r511045;
}




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 +o rules:numerics
(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))