\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|
\left|\frac{x + 4}{y} - \left(x \cdot \frac{\sqrt[3]{z} \cdot \sqrt[3]{z}}{\sqrt[3]{y} \cdot \sqrt[3]{y}}\right) \cdot \frac{\sqrt[3]{z}}{\sqrt[3]{y}}\right|
(FPCore (x y z) :precision binary64 (fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))
(FPCore (x y z)
:precision binary64
(fabs
(-
(/ (+ x 4.0) y)
(*
(* x (/ (* (cbrt z) (cbrt z)) (* (cbrt y) (cbrt y))))
(/ (cbrt z) (cbrt 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) {
return fabs(((x + 4.0) / y) - ((x * ((cbrt(z) * cbrt(z)) / (cbrt(y) * cbrt(y)))) * (cbrt(z) / cbrt(y))));
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 1.6
rmApplied div-inv_binary641.6
Applied associate-*l*_binary643.3
Simplified3.3
rmApplied add-cube-cbrt_binary643.6
Applied add-cube-cbrt_binary643.7
Applied times-frac_binary643.7
Applied associate-*r*_binary640.9
Final simplification0.9
herbie shell --seed 2021196
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))