\cosh x \cdot \frac{\sin y}{y}\frac{1}{\frac{y}{\sin y}} \cdot \cosh xdouble f(double x, double y) {
double r359812 = x;
double r359813 = cosh(r359812);
double r359814 = y;
double r359815 = sin(r359814);
double r359816 = r359815 / r359814;
double r359817 = r359813 * r359816;
return r359817;
}
double f(double x, double y) {
double r359818 = 1.0;
double r359819 = y;
double r359820 = sin(r359819);
double r359821 = r359819 / r359820;
double r359822 = r359818 / r359821;
double r359823 = x;
double r359824 = cosh(r359823);
double r359825 = r359822 * r359824;
return r359825;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.1
rmApplied *-un-lft-identity0.1
Applied *-un-lft-identity0.1
Applied times-frac0.1
Simplified0.1
rmApplied clear-num0.2
Final simplification0.2
herbie shell --seed 2019235 +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)))