\cosh x \cdot \frac{\sin y}{y}\cosh x \cdot \frac{1}{\frac{y}{\sin y}}double f(double x, double y) {
double r332125 = x;
double r332126 = cosh(r332125);
double r332127 = y;
double r332128 = sin(r332127);
double r332129 = r332128 / r332127;
double r332130 = r332126 * r332129;
return r332130;
}
double f(double x, double y) {
double r332131 = x;
double r332132 = cosh(r332131);
double r332133 = 1.0;
double r332134 = y;
double r332135 = sin(r332134);
double r332136 = r332134 / r332135;
double r332137 = r332133 / r332136;
double r332138 = r332132 * r332137;
return r332138;
}




Bits error versus x




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