x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;x \cdot \left(1 - y \cdot z\right) \le 1.7156016384776746 \cdot 10^{288}:\\
\;\;\;\;x \cdot 1 - x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1 - z \cdot \left(x \cdot y\right)\\
\end{array}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) {
double VAR;
if ((((double) (x * ((double) (1.0 - ((double) (y * z)))))) <= 1.7156016384776746e+288)) {
VAR = ((double) (((double) (x * 1.0)) - ((double) (x * ((double) (y * z))))));
} else {
VAR = ((double) (((double) (x * 1.0)) - ((double) (z * ((double) (x * y))))));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* x (- 1.0 (* y z))) < 1.7156016384776746e288Initial program 1.6
rmApplied sub-neg1.6
Applied distribute-lft-in1.6
Simplified1.6
if 1.7156016384776746e288 < (* x (- 1.0 (* y z))) Initial program 37.5
rmApplied sub-neg37.5
Applied distribute-lft-in37.5
Simplified37.5
rmApplied associate-*r*6.1
Final simplification1.8
herbie shell --seed 2020185
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))