x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le -7.6780371527866125 \cdot 10^{201} \lor \neg \left(y \cdot z \le 2.2480057826890588 \cdot 10^{289}\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 (x * (1.0 - (y * z)));
}
double code(double x, double y, double z) {
double VAR;
if ((((y * z) <= -7.678037152786613e+201) || !((y * z) <= 2.2480057826890588e+289))) {
VAR = ((x * 1.0) + ((x * -y) * z));
} else {
VAR = ((x * (1.0 - (y * z))) + (x * fma(-z, y, (z * y))));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -7.678037152786613e+201 or 2.2480057826890588e+289 < (* y z) Initial program 36.5
rmApplied sub-neg36.5
Applied distribute-lft-in36.5
rmApplied distribute-lft-neg-in36.5
Applied associate-*r*1.1
if -7.678037152786613e+201 < (* y z) < 2.2480057826890588e+289Initial program 0.1
rmApplied add-cube-cbrt0.1
Applied prod-diff0.1
Applied distribute-lft-in0.1
Simplified0.1
Final simplification0.2
herbie shell --seed 2020091 +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))))