\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r404677 = x;
double r404678 = sin(r404677);
double r404679 = y;
double r404680 = sinh(r404679);
double r404681 = r404678 * r404680;
double r404682 = r404681 / r404677;
return r404682;
}
double f(double x, double y) {
double r404683 = y;
double r404684 = sinh(r404683);
double r404685 = x;
double r404686 = sin(r404685);
double r404687 = r404686 / r404685;
double r404688 = r404684 * r404687;
return r404688;
}




Bits error versus x




Bits error versus y
Results
| Original | 13.9 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 13.9
Simplified0.8
rmApplied div-inv0.9
Applied associate-/r*0.2
rmApplied div-inv0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2019194
(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))