\cosh x \cdot \frac{\sin y}{y}\frac{1 \cdot \left(\sin y \cdot \cosh x\right)}{y}double code(double x, double y) {
return ((double) (((double) cosh(x)) * ((double) (((double) sin(y)) / y))));
}
double code(double x, double y) {
return ((double) (((double) (1.0 * ((double) (((double) sin(y)) * ((double) cosh(x)))))) / y));
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
rmApplied associate-*r/0.1
Simplified0.1
rmApplied *-un-lft-identity0.1
Final simplification0.1
herbie shell --seed 2020114 +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)))