x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -3.590172185221917 \cdot 10^{+287} \lor \neg \left(y \cdot z \leq 5.2748072400000184 \cdot 10^{+194}\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) -3.590172185221917e+287)
(not (<= (* y z) 5.2748072400000184e+194)))
(- (* 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) <= -3.590172185221917e+287) || !((y * z) <= 5.2748072400000184e+194)) {
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) < -3.5901721852219172e287 or 5.27480724000001844e194 < (*.f64 y z) Initial program 35.1
Taylor expanded in y around inf 0.9
Simplified0.9
if -3.5901721852219172e287 < (*.f64 y z) < 5.27480724000001844e194Initial 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 5.4
Simplified0.1
Final simplification0.2
herbie shell --seed 2021313
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))