x + \frac{y}{1.12837916709551256 \cdot e^{z} - x \cdot y}x + \frac{\sqrt{1}}{1.12837916709551256 \cdot \frac{e^{z}}{y} - x}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) (((double) sqrt(1.0)) / ((double) (((double) (1.1283791670955126 * ((double) (((double) exp(z)) / y)))) - x))))));
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 3.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 3.0
rmApplied clear-num3.0
rmApplied add-sqr-sqrt3.0
Applied associate-/l*3.0
Simplified0.1
Final simplification0.1
herbie shell --seed 2020113 +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)))))