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




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 3.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.0 |
Initial program 3.1
rmApplied clear-num_binary643.1
Simplified0.0
rmApplied associate-/l*_binary640.0
Final simplification0.0
herbie shell --seed 2020210
(FPCore (x y z)
:name "Numeric.SpecFunctions:invErfc from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(+ x (/ 1.0 (- (* (/ 1.1283791670955126 y) (exp z)) x)))
(+ x (/ y (- (* 1.1283791670955126 (exp z)) (* x y)))))