x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -2.7737198986946373 \cdot 10^{+183}:\\
\;\;\;\;x - z \cdot \left(y \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(y \cdot z\right) \cdot x\\
\end{array}(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
(FPCore (x y z) :precision binary64 (if (<= (* y z) -2.7737198986946373e+183) (- x (* z (* y x))) (- x (* (* y z) x))))
double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
double code(double x, double y, double z) {
double tmp;
if ((y * z) <= -2.7737198986946373e+183) {
tmp = x - (z * (y * x));
} else {
tmp = x - ((y * z) * x);
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (*.f64 y z) < -2.7737198986946373e183Initial program 22.2
rmApplied sub-neg_binary64_1030122.2
Applied distribute-rgt-in_binary64_1025822.2
Simplified22.2
Simplified22.2
rmApplied distribute-rgt-neg-in_binary64_1026622.2
Applied associate-*r*_binary64_102482.3
if -2.7737198986946373e183 < (*.f64 y z) Initial program 1.9
rmApplied sub-neg_binary64_103011.9
Applied distribute-rgt-in_binary64_102581.9
Simplified1.9
Simplified1.9
rmApplied distribute-rgt-neg-out_binary64_102681.9
Applied unsub-neg_binary64_103021.9
Final simplification1.9
herbie shell --seed 2020344
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))