\frac{\cosh x \cdot \frac{y}{x}}{z}\cosh x \cdot \frac{y}{x \cdot z}double f(double x, double y, double z) {
double r352621 = x;
double r352622 = cosh(r352621);
double r352623 = y;
double r352624 = r352623 / r352621;
double r352625 = r352622 * r352624;
double r352626 = z;
double r352627 = r352625 / r352626;
return r352627;
}
double f(double x, double y, double z) {
double r352628 = x;
double r352629 = cosh(r352628);
double r352630 = y;
double r352631 = z;
double r352632 = r352628 * r352631;
double r352633 = r352630 / r352632;
double r352634 = r352629 * r352633;
return r352634;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 7.5 |
|---|---|
| Target | 0.4 |
| Herbie | 7.0 |
if z < -2.4014304081022685e-24 or 0.000273177232586214 < z Initial program 11.0
rmApplied *-un-lft-identity11.0
Applied times-frac11.0
Simplified11.0
Simplified0.4
if -2.4014304081022685e-24 < z < 0.000273177232586214Initial program 0.3
rmApplied add-cbrt-cube0.4
Simplified0.4
Final simplification7.0
herbie shell --seed 2019298
(FPCore (x y z)
:name "Linear.Quaternion:$ctan from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y -4.618902267687042e-52) (* (/ (/ y z) x) (cosh x)) (if (< y 1.03853053593515302e-39) (/ (/ (* (cosh x) y) x) z) (* (/ (/ y z) x) (cosh x))))
(/ (* (cosh x) (/ y x)) z))