\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_binary641.9
Applied add-cube-cbrt_binary642.0
Applied times-frac_binary642.0
Applied associate-*l*_binary640.6
Simplified0.6
Final simplification0.6
herbie shell --seed 2020253
(FPCore (x y z)
:name "fabs fraction 1"
:precision binary64
(fabs (- (/ (+ x 4.0) y) (* (/ x y) z))))