x + \frac{y}{1.12837916709551256 \cdot e^{z} - x \cdot y}x + \frac{1}{\frac{e^{z}}{\frac{y}{1.12837916709551256}} - \frac{x}{1}}double code(double x, double y, double z) {
return (x + (y / ((1.1283791670955126 * exp(z)) - (x * y))));
}
double code(double x, double y, double z) {
return (x + (1.0 / ((exp(z) / (y / 1.1283791670955126)) - (x / 1.0))));
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 3.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.0 |
Initial program 3.0
rmApplied add-exp-log3.0
Applied prod-exp3.0
Simplified3.0
rmApplied clear-num3.0
rmApplied div-sub3.0
Simplified3.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020058
(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)))))