\cosh x \cdot \frac{\sin y}{y}\cosh x \cdot \frac{\sin y}{y}double f(double x, double y) {
double r275030 = x;
double r275031 = cosh(r275030);
double r275032 = y;
double r275033 = sin(r275032);
double r275034 = r275033 / r275032;
double r275035 = r275031 * r275034;
return r275035;
}
double f(double x, double y) {
double r275036 = x;
double r275037 = cosh(r275036);
double r275038 = y;
double r275039 = sin(r275038);
double r275040 = r275039 / r275038;
double r275041 = r275037 * r275040;
return r275041;
}




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