\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\begin{array}{l}
\mathbf{if}\;x \le -0.12093481890030686 \lor \neg \left(x \le 1.662672792848544 \cdot 10^{36}\right):\\
\;\;\;\;\left|\frac{x + 4}{y} - x \cdot \frac{z}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{-\left(\left(x + 4\right) - x \cdot z\right)}{-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 <= -0.12093481890030686) || !(x <= 1.662672792848544e+36))) {
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 < -0.12093481890030686 or 1.662672792848544e+36 < x Initial program 0.1
rmApplied div-inv0.2
Applied associate-*l*0.2
Simplified0.1
if -0.12093481890030686 < x < 1.662672792848544e+36Initial program 2.4
rmApplied frac-2neg2.4
Applied associate-*l/0.1
Applied frac-2neg0.1
Applied sub-div0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020071
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))