x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
t_0 := x \cdot \left(1 - y \cdot z\right)\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;\left(-y\right) \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t_0 \leq 1.658854212440669 \cdot 10^{+295}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \left(x \cdot z\right)\\
\end{array}
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 1.0 (* y z)))))
(if (<= t_0 (- INFINITY))
(* (- y) (* x z))
(if (<= t_0 1.658854212440669e+295) t_0 (- x (* y (* x z)))))))double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
double code(double x, double y, double z) {
double t_0 = x * (1.0 - (y * z));
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = -y * (x * z);
} else if (t_0 <= 1.658854212440669e+295) {
tmp = t_0;
} else {
tmp = x - (y * (x * z));
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (*.f64 x (-.f64 1 (*.f64 y z))) < -inf.0Initial program 64.0
Applied add-cube-cbrt_binary6464.0
Applied associate-*r*_binary6464.0
Taylor expanded in y around inf 0.3
Simplified0.3
if -inf.0 < (*.f64 x (-.f64 1 (*.f64 y z))) < 1.658854212440669e295Initial program 0.1
if 1.658854212440669e295 < (*.f64 x (-.f64 1 (*.f64 y z))) Initial program 42.9
Taylor expanded in y around 0 5.8
Final simplification0.3
herbie shell --seed 2022081
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))