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



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 1.6
rmApplied add-cube-cbrt_binary64_1131.9
Applied add-cube-cbrt_binary64_1132.0
Applied times-frac_binary64_842.0
Applied associate-*l*_binary64_190.7
Simplified0.7
Final simplification0.7
herbie shell --seed 2020355
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))