\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\begin{array}{l}
\mathbf{if}\;x \le -5.30409713175785224 \cdot 10^{33} \lor \neg \left(x \le 14470365275194734\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}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 VAR;
if (((x <= -5.304097131757852e+33) || !(x <= 14470365275194734.0))) {
VAR = fabs((((x + 4.0) / y) - (x * (z / y))));
} else {
VAR = fabs((((x + 4.0) - (x * z)) / y));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if x < -5.304097131757852e+33 or 14470365275194734.0 < x Initial program 0.1
rmApplied div-inv0.1
Applied associate-*l*0.1
Simplified0.1
if -5.304097131757852e+33 < x < 14470365275194734.0Initial program 2.4
rmApplied associate-*l/0.1
Applied sub-div0.1
Final simplification0.1
herbie shell --seed 2020105
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))