x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le -6.83235947454961903 \cdot 10^{228} \lor \neg \left(y \cdot z \le 1.3754404871982002 \cdot 10^{221}\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) <= -6.832359474549619e+228) || !((y * z) <= 1.3754404871982002e+221))) {
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) < -6.832359474549619e+228 or 1.3754404871982002e+221 < (* y z) Initial program 32.3
rmApplied sub-neg32.3
Applied distribute-lft-in32.3
rmApplied distribute-lft-neg-in32.3
Applied associate-*r*1.0
if -6.832359474549619e+228 < (* y z) < 1.3754404871982002e+221Initial 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 2020092 +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))))