\cosh x \cdot \frac{\sin y}{y}\cosh x \cdot \frac{\sin y}{y}double f(double x, double y) {
double r300393 = x;
double r300394 = cosh(r300393);
double r300395 = y;
double r300396 = sin(r300395);
double r300397 = r300396 / r300395;
double r300398 = r300394 * r300397;
return r300398;
}
double f(double x, double y) {
double r300399 = x;
double r300400 = cosh(r300399);
double r300401 = y;
double r300402 = sin(r300401);
double r300403 = r300402 / r300401;
double r300404 = r300400 * r300403;
return r300404;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.2
Final simplification0.2
herbie shell --seed 2019325 +o rules:numerics
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:precision binary64
:herbie-target
(/ (* (cosh x) (sin y)) y)
(* (cosh x) (/ (sin y) y)))