\cosh x \cdot \frac{\sin y}{y}\cosh x \cdot \frac{1}{\frac{y}{\sin y}}double f(double x, double y) {
double r434558 = x;
double r434559 = cosh(r434558);
double r434560 = y;
double r434561 = sin(r434560);
double r434562 = r434561 / r434560;
double r434563 = r434559 * r434562;
return r434563;
}
double f(double x, double y) {
double r434564 = x;
double r434565 = cosh(r434564);
double r434566 = 1.0;
double r434567 = y;
double r434568 = sin(r434567);
double r434569 = r434567 / r434568;
double r434570 = r434566 / r434569;
double r434571 = r434565 * r434570;
return r434571;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.1
rmApplied clear-num0.2
Final simplification0.2
herbie shell --seed 2020045
(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)))