x + \frac{y}{1.12837916709551256 \cdot e^{z} - x \cdot y}x + \frac{1}{1 \cdot \left(\frac{1.12837916709551256 \cdot \frac{e^{z}}{\sqrt[3]{y} \cdot \sqrt[3]{y}}}{\sqrt[3]{y}} - x\right)}double code(double x, double y, double z) {
return ((double) (x + ((double) (y / ((double) (((double) (1.1283791670955126 * ((double) exp(z)))) - ((double) (x * y))))))));
}
double code(double x, double y, double z) {
return ((double) (x + ((double) (1.0 / ((double) (1.0 * ((double) (((double) (((double) (1.1283791670955126 * ((double) (((double) exp(z)) / ((double) (((double) cbrt(y)) * ((double) cbrt(y)))))))) / ((double) cbrt(y)))) - x))))))));
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 2.8 |
|---|---|
| Target | 0.0 |
| Herbie | 0.2 |
Initial program 2.8
rmApplied clear-num2.8
rmApplied *-un-lft-identity2.8
Applied *-un-lft-identity2.8
Applied times-frac2.8
Simplified2.8
Simplified0.1
rmApplied add-cube-cbrt0.2
Applied associate-/r*0.2
Applied associate-*r/0.2
Final simplification0.2
herbie shell --seed 2020114 +o rules:numerics
(FPCore (x y z)
:name "Numeric.SpecFunctions:invErfc from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(+ x (/ 1 (- (* (/ 1.1283791670955126 y) (exp z)) x)))
(+ x (/ y (- (* 1.1283791670955126 (exp z)) (* x y)))))