\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r427507 = x;
double r427508 = sin(r427507);
double r427509 = y;
double r427510 = sinh(r427509);
double r427511 = r427508 * r427510;
double r427512 = r427511 / r427507;
return r427512;
}
double f(double x, double y) {
double r427513 = y;
double r427514 = sinh(r427513);
double r427515 = x;
double r427516 = sin(r427515);
double r427517 = r427516 / r427515;
double r427518 = r427514 * r427517;
return r427518;
}




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))