x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;1 - y \cdot z \le -5.7238574610871332 \cdot 10^{207} \lor \neg \left(1 - y \cdot z \le 4.14970720312397761 \cdot 10^{170}\right):\\
\;\;\;\;x \cdot 1 + \left(x \cdot \left(-y\right)\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - y \cdot z\right) + x \cdot \mathsf{fma}\left(-z, y, z \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) (1.0 - ((double) (y * z)))) <= -5.723857461087133e+207) || !(((double) (1.0 - ((double) (y * z)))) <= 4.1497072031239776e+170))) {
VAR = ((double) (((double) (x * 1.0)) + ((double) (((double) (x * ((double) -(y)))) * z))));
} else {
VAR = ((double) (((double) (x * ((double) (1.0 - ((double) (y * z)))))) + ((double) (x * ((double) fma(((double) -(z)), y, ((double) (z * y))))))));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (- 1.0 (* y z)) < -5.723857461087133e+207 or 4.1497072031239776e+170 < (- 1.0 (* y z)) Initial program 24.3
rmApplied sub-neg24.3
Applied distribute-lft-in24.3
rmApplied distribute-lft-neg-in24.3
Applied associate-*r*1.5
if -5.723857461087133e+207 < (- 1.0 (* y z)) < 4.1497072031239776e+170Initial program 0.1
rmApplied add-cube-cbrt0.1
Applied prod-diff0.1
Applied distribute-lft-in0.1
Simplified0.1
Final simplification0.3
herbie shell --seed 2020123 +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))))