\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\frac{1}{\frac{y + z \cdot \left(b - y\right)}{y \cdot x + z \cdot \left(t - a\right)}}(FPCore (x y z t a b) :precision binary64 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
(FPCore (x y z t a b) :precision binary64 (/ 1.0 (/ (+ y (* z (- b y))) (+ (* y x) (* z (- t a))))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 / ((y + (z * (b - y))) / ((y * x) + (z * (t - a))));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a




Bits error versus b
Results
| Original | 23.3 |
|---|---|
| Target | 17.8 |
| Herbie | 23.5 |
Initial program 23.3
rmApplied clear-num_binary6423.5
Final simplification23.5
herbie shell --seed 2020224
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
:herbie-target
(- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z))))
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))