x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -\infty \lor \neg \left(y \cdot z \leq 3.0891584870050743 \cdot 10^{+301}\right):\\
\;\;\;\;-y \cdot \left(z \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - \left(y \cdot z\right) \cdot x\right) + x \cdot \mathsf{fma}\left(-z, y, y \cdot z\right)\\
\end{array}
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
(FPCore (x y z) :precision binary64 (if (or (<= (* y z) (- INFINITY)) (not (<= (* y z) 3.0891584870050743e+301))) (- (* y (* z x))) (+ (- x (* (* y z) x)) (* x (fma (- z) y (* y z))))))
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) <= -((double) INFINITY)) || !((y * z) <= 3.0891584870050743e+301)) {
tmp = -(y * (z * x));
} else {
tmp = (x - ((y * z) * x)) + (x * fma(-z, y, (y * z)));
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z
if (*.f64 y z) < -inf.0 or 3.0891584870050743e301 < (*.f64 y z) Initial program 62.4
Taylor expanded in y around inf 0.2
Simplified0.2
if -inf.0 < (*.f64 y z) < 3.0891584870050743e301Initial program 0.1
Applied *-un-lft-identity_binary640.1
Applied prod-diff_binary640.1
Applied distribute-rgt-in_binary640.1
Applied add-cube-cbrt_binary641.4
Applied associate-*r*_binary641.4
Simplified1.4
Taylor expanded in y around 0 4.9
Simplified0.1
Final simplification0.1
herbie shell --seed 2022067
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))