\cosh x \cdot \frac{\sin y}{y}\frac{\left(\frac{1}{2} \cdot \sin y\right) \cdot \left(e^{x} + e^{-x}\right)}{y}double f(double x, double y) {
double r283855 = x;
double r283856 = cosh(r283855);
double r283857 = y;
double r283858 = sin(r283857);
double r283859 = r283858 / r283857;
double r283860 = r283856 * r283859;
return r283860;
}
double f(double x, double y) {
double r283861 = 0.5;
double r283862 = y;
double r283863 = sin(r283862);
double r283864 = r283861 * r283863;
double r283865 = x;
double r283866 = exp(r283865);
double r283867 = -r283865;
double r283868 = exp(r283867);
double r283869 = r283866 + r283868;
double r283870 = r283864 * r283869;
double r283871 = r283870 / r283862;
return r283871;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.2 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.2
rmApplied expm1-log1p-u0.2
Taylor expanded around inf 0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019303 +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)))