\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\begin{array}{l}
\mathbf{if}\;x \leq -2.3137366845613107 \cdot 10^{+129} \lor \neg \left(x \leq 6.001986944859844 \cdot 10^{-37}\right):\\
\;\;\;\;\left|\frac{x + 4}{y} - x \cdot \frac{z}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y}\right|\\
\end{array}(FPCore (x y z) :precision binary64 (fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))
(FPCore (x y z) :precision binary64 (if (or (<= x -2.3137366845613107e+129) (not (<= x 6.001986944859844e-37))) (fabs (- (/ (+ x 4.0) y) (* x (/ z y)))) (fabs (/ (- (+ x 4.0) (* x z)) y))))
double code(double x, double y, double z) {
return fabs(((x + 4.0) / y) - ((x / y) * z));
}
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.3137366845613107e+129) || !(x <= 6.001986944859844e-37)) {
tmp = fabs(((x + 4.0) / y) - (x * (z / y)));
} else {
tmp = fabs(((x + 4.0) - (x * z)) / y);
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if x < -2.3137366845613107e129 or 6.00198694485984416e-37 < x Initial program 0.2
rmApplied div-inv_binary640.2
Applied associate-*l*_binary640.3
Simplified0.3
if -2.3137366845613107e129 < x < 6.00198694485984416e-37Initial program 2.4
Simplified0.5
Final simplification0.4
herbie shell --seed 2020233
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))