x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -7.216107385408528 \cdot 10^{+186} \lor \neg \left(y \cdot z \leq 5.887669417181293 \cdot 10^{+210}\right):\\
\;\;\;\;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 (or (<= (* y z) -7.216107385408528e+186)
(not (<= (* y z) 5.887669417181293e+210)))
(- 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) <= -7.216107385408528e+186) || !((y * z) <= 5.887669417181293e+210)) {
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) < -7.2161073854085278e186 or 5.8876694171812932e210 < (*.f64 y z) Initial program 25.7
rmApplied sub-neg_binary64_936025.7
Applied distribute-rgt-in_binary64_931725.7
Simplified25.7
Simplified25.7
rmApplied distribute-rgt-neg-in_binary64_932525.7
Applied associate-*r*_binary64_93070.9
if -7.2161073854085278e186 < (*.f64 y z) < 5.8876694171812932e210Initial program 0.1
rmApplied sub-neg_binary64_93600.1
Applied distribute-rgt-in_binary64_93170.1
Simplified0.1
Simplified0.1
Final simplification0.2
herbie shell --seed 2020280
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))