\cosh x \cdot \frac{\sin y}{y}\frac{1}{\frac{y}{\sin y}} \cdot \cosh xdouble f(double x, double y) {
double r22206755 = x;
double r22206756 = cosh(r22206755);
double r22206757 = y;
double r22206758 = sin(r22206757);
double r22206759 = r22206758 / r22206757;
double r22206760 = r22206756 * r22206759;
return r22206760;
}
double f(double x, double y) {
double r22206761 = 1.0;
double r22206762 = y;
double r22206763 = sin(r22206762);
double r22206764 = r22206762 / r22206763;
double r22206765 = r22206761 / r22206764;
double r22206766 = x;
double r22206767 = cosh(r22206766);
double r22206768 = r22206765 * r22206767;
return r22206768;
}




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 2019192
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:herbie-target
(/ (* (cosh x) (sin y)) y)
(* (cosh x) (/ (sin y) y)))