x \cdot \left(1 - y \cdot z\right)
x - x \cdot \left(y \cdot z\right)
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
(FPCore (x y z) :precision binary64 (- x (* x (* y z))))
double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
double code(double x, double y, double z) {
return x - (x * (y * z));
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 3.3
rmApplied sub-neg_binary64_75733.3
Applied distribute-rgt-in_binary64_75303.3
Final simplification3.3
herbie shell --seed 2021014
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))