\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\begin{array}{l}
\mathbf{if}\;z \le -1.20238292448833777 \cdot 10^{61} \lor \neg \left(z \le 7.0335690365131913 \cdot 10^{75}\right):\\
\;\;\;\;\frac{t}{b} - \frac{a}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{y + z \cdot \left(b - y\right)}{x \cdot y + z \cdot \left(t - a\right)}}\\
\end{array}double code(double x, double y, double z, double t, double a, double b) {
return (((double) (((double) (x * y)) + ((double) (z * ((double) (t - a)))))) / ((double) (y + ((double) (z * ((double) (b - y)))))));
}
double code(double x, double y, double z, double t, double a, double b) {
double VAR;
if (((z <= -1.2023829244883378e+61) || !(z <= 7.033569036513191e+75))) {
VAR = ((double) ((t / b) - (a / b)));
} else {
VAR = (1.0 / (((double) (y + ((double) (z * ((double) (b - y)))))) / ((double) (((double) (x * y)) + ((double) (z * ((double) (t - a))))))));
}
return VAR;
}




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.7 |
|---|---|
| Target | 18.5 |
| Herbie | 19.5 |
if z < -1.20238292448833777e61 or 7.0335690365131913e75 < z Initial program 44.8
rmApplied clear-num44.8
rmApplied div-inv44.9
Applied associate-/r*44.8
Simplified44.8
Taylor expanded around inf 33.5
if -1.20238292448833777e61 < z < 7.0335690365131913e75Initial program 10.5
rmApplied clear-num10.7
Final simplification19.5
herbie shell --seed 2020182
(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)))))