x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le 3.90544754148054988 \cdot 10^{250}:\\
\;\;\;\;x \cdot 1 + x \cdot \left(-y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1 + \left(x \cdot \left(-y\right)\right) \cdot z\\
\end{array}double code(double x, double y, double z) {
return (x * (1.0 - (y * z)));
}
double code(double x, double y, double z) {
double VAR;
if (((y * z) <= 3.90544754148055e+250)) {
VAR = ((x * 1.0) + (x * -(y * z)));
} else {
VAR = ((x * 1.0) + ((x * -y) * z));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < 3.90544754148055e+250Initial program 1.8
rmApplied sub-neg1.8
Applied distribute-lft-in1.8
if 3.90544754148055e+250 < (* y z) Initial program 38.9
rmApplied sub-neg38.9
Applied distribute-lft-in38.9
rmApplied distribute-lft-neg-in38.9
Applied associate-*r*0.2
Final simplification1.7
herbie shell --seed 2020103 +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))))