\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\begin{array}{l}
\mathbf{if}\;x \le -1.5424594366857613 \cdot 10^{29}:\\
\;\;\;\;\left|\left(\left(4 \cdot \left(\sqrt[3]{\frac{1}{y}} \cdot \sqrt[3]{\frac{1}{y}}\right)\right) \cdot \sqrt[3]{\frac{1}{y}} + \frac{x}{y}\right) - \frac{x}{y} \cdot z\right|\\
\mathbf{elif}\;x \le 2.1896364681112564 \cdot 10^{-12}:\\
\;\;\;\;\left|\frac{x + 4}{y} - \frac{x \cdot z}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{x + 4}{y} - x \cdot \frac{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 temp;
if ((x <= -1.5424594366857613e+29)) {
temp = fabs(((((4.0 * (cbrt((1.0 / y)) * cbrt((1.0 / y)))) * cbrt((1.0 / y))) + (x / y)) - ((x / y) * z)));
} else {
double temp_1;
if ((x <= 2.1896364681112564e-12)) {
temp_1 = fabs((((x + 4.0) / y) - ((x * z) / y)));
} else {
temp_1 = fabs((((x + 4.0) / y) - (x * (z / y))));
}
temp = temp_1;
}
return temp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if x < -1.5424594366857613e+29Initial program 0.1
Taylor expanded around 0 0.1
rmApplied add-cube-cbrt0.1
Applied associate-*r*0.1
if -1.5424594366857613e+29 < x < 2.1896364681112564e-12Initial program 2.5
rmApplied associate-*l/0.1
if 2.1896364681112564e-12 < x Initial program 0.2
rmApplied div-inv0.2
Applied associate-*l*0.2
Simplified0.2
Final simplification0.1
herbie shell --seed 2020057
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))