\frac{\sin x \cdot \sinh y}{x}\frac{\sin x}{x} \cdot \sinh ydouble f(double x, double y) {
double r352998 = x;
double r352999 = sin(r352998);
double r353000 = y;
double r353001 = sinh(r353000);
double r353002 = r352999 * r353001;
double r353003 = r353002 / r352998;
return r353003;
}
double f(double x, double y) {
double r353004 = x;
double r353005 = sin(r353004);
double r353006 = r353005 / r353004;
double r353007 = y;
double r353008 = sinh(r353007);
double r353009 = r353006 * r353008;
return r353009;
}




Bits error versus x




Bits error versus y
Results
| Original | 13.9 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 13.9
rmApplied associate-/l*0.9
rmApplied associate-/r/0.1
Final simplification0.1
herbie shell --seed 2019305
(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))