\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{1}{\frac{x}{\sin x}}double f(double x, double y) {
double r428010 = x;
double r428011 = sin(r428010);
double r428012 = y;
double r428013 = sinh(r428012);
double r428014 = r428011 * r428013;
double r428015 = r428014 / r428010;
return r428015;
}
double f(double x, double y) {
double r428016 = y;
double r428017 = sinh(r428016);
double r428018 = 1.0;
double r428019 = x;
double r428020 = sin(r428019);
double r428021 = r428019 / r428020;
double r428022 = r428018 / r428021;
double r428023 = r428017 * r428022;
return r428023;
}




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 *-un-lft-identity0.8
Applied *-un-lft-identity0.8
Applied times-frac0.8
Applied *-un-lft-identity0.8
Applied times-frac0.8
Simplified0.8
Simplified0.1
rmApplied clear-num0.1
Final simplification0.1
herbie shell --seed 2019179
(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))