x \cdot \left(1 - y \cdot z\right)
x \cdot \left(1 - y \cdot z\right) + x \cdot \mathsf{fma}\left(-z, y, z \cdot y\right)double code(double x, double y, double z) {
return (x * (1.0 - (y * z)));
}
double code(double x, double y, double z) {
return ((x * (1.0 - (y * z))) + (x * fma(-z, y, (z * y))));
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 3.3
rmApplied add-cube-cbrt3.3
Applied prod-diff3.3
Applied distribute-lft-in3.3
Simplified3.3
Final simplification3.3
herbie shell --seed 2020105 +o rules:numerics
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1 (* y z))))