\frac{\sin x \cdot \sinh y}{x}\sin x \cdot \frac{\sinh y}{x}double f(double x, double y) {
double r356593 = x;
double r356594 = sin(r356593);
double r356595 = y;
double r356596 = sinh(r356595);
double r356597 = r356594 * r356596;
double r356598 = r356597 / r356593;
return r356598;
}
double f(double x, double y) {
double r356599 = x;
double r356600 = sin(r356599);
double r356601 = y;
double r356602 = sinh(r356601);
double r356603 = r356602 / r356599;
double r356604 = r356600 * r356603;
return r356604;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 14.4
rmApplied associate-/l*0.8
rmApplied clear-num0.9
rmApplied div-inv1.0
Applied associate-/r*0.9
Simplified0.4
Final simplification0.2
herbie shell --seed 2019303
(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))