x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -9.649268280124623 \cdot 10^{+114} \lor \neg \left(y \cdot z \leq 2.4485710024057104 \cdot 10^{+158}\right):\\
\;\;\;\;x - y \cdot \left(z \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) -9.649268280124623e+114)
(not (<= (* y z) 2.4485710024057104e+158)))
(- x (* y (* z 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) <= -9.649268280124623e+114) || !((y * z) <= 2.4485710024057104e+158)) {
tmp = x - (y * (z * 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) < -9.6492682801246234e114 or 2.44857100240571038e158 < (*.f64 y z) Initial program 17.2
rmApplied sub-neg_binary6417.2
Applied distribute-rgt-in_binary6417.2
Simplified17.2
Simplified17.2
rmApplied associate-*r*_binary643.0
if -9.6492682801246234e114 < (*.f64 y z) < 2.44857100240571038e158Initial program 0.1
Taylor expanded around 0 0.1
Final simplification0.6
herbie shell --seed 2021175
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))