x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le -2.4721039413106089 \cdot 10^{169} \lor \neg \left(y \cdot z \le 7.17200634455581739 \cdot 10^{212}\right):\\
\;\;\;\;x \cdot 1 + \left(x \cdot y\right) \cdot \left(-z\right)\\
\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 temp;
if ((((y * z) <= -2.472103941310609e+169) || !((y * z) <= 7.172006344555817e+212))) {
temp = ((x * 1.0) + ((x * y) * -z));
} else {
temp = ((x * (1.0 - (y * z))) + (x * fma(-z, y, (z * y))));
}
return temp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -2.472103941310609e+169 or 7.172006344555817e+212 < (* y z) Initial program 22.3
rmApplied sub-neg22.3
Applied distribute-lft-in22.3
rmApplied distribute-rgt-neg-in22.3
Applied associate-*r*1.5
if -2.472103941310609e+169 < (* y z) < 7.172006344555817e+212Initial 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 2020056 +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))))