\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r331881 = x;
double r331882 = sin(r331881);
double r331883 = y;
double r331884 = sinh(r331883);
double r331885 = r331882 * r331884;
double r331886 = r331885 / r331881;
return r331886;
}
double f(double x, double y) {
double r331887 = y;
double r331888 = sinh(r331887);
double r331889 = x;
double r331890 = sin(r331889);
double r331891 = r331890 / r331889;
double r331892 = r331888 * r331891;
return r331892;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.5 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 14.5
Taylor expanded around inf 43.2
Simplified0.2
rmApplied div-inv0.3
Applied associate-*l*0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2019323
(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))