x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -2.6603473447694313 \cdot 10^{+285} \lor \neg \left(y \cdot z \leq 1.0186609144118882 \cdot 10^{+218}\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) -2.6603473447694313e+285)
(not (<= (* y z) 1.0186609144118882e+218)))
(- x (* z (* y x)))
(- x (* (* y z) x))))double code(double x, double y, double z) {
return ((double) (x * ((double) (1.0 - ((double) (y * z))))));
}
double code(double x, double y, double z) {
double tmp;
if (((((double) (y * z)) <= -2.6603473447694313e+285) || !(((double) (y * z)) <= 1.0186609144118882e+218))) {
tmp = ((double) (x - ((double) (z * ((double) (y * x))))));
} else {
tmp = ((double) (x - ((double) (((double) (y * z)) * x))));
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (*.f64 y z) < -2.6603473447694313e285 or 1.01866091441188821e218 < (*.f64 y z) Initial program 38.1
rmApplied sub-neg_binary6438.1
Applied distribute-lft-in_binary6438.1
Simplified38.1
rmApplied distribute-lft-neg-in_binary6438.1
Applied associate-*r*_binary641.0
if -2.6603473447694313e285 < (*.f64 y z) < 1.01866091441188821e218Initial program 0.1
rmApplied sub-neg_binary640.1
Applied distribute-lft-in_binary640.1
Simplified0.1
Final simplification0.2
herbie shell --seed 2020219
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))