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



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -5.9823418309629038e165Initial program 20.9
rmApplied sub-neg20.9
Applied distribute-lft-in20.9
Simplified20.9
rmApplied associate-*r*2.6
if -5.9823418309629038e165 < (* y z) Initial program 1.8
rmApplied sub-neg1.8
Applied distribute-lft-in1.8
Simplified1.8
Final simplification1.9
herbie shell --seed 2020184
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))