double code(double x, double y, double z) {
return ((double) (x * ((double) (1.0 - ((double) (y * z))))));
}
double code(double x, double y, double z) {
return ((double) (((double) (x * 1.0)) - ((double) (x * ((double) (y * z))))));
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 3.0
rmApplied sub-neg3.0
Applied distribute-lft-in3.0
Simplified3.0
Final simplification3.0
herbie shell --seed 2020191
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))