\left(x + y\right) \cdot \left(1 - z\right)
\mathsf{fma}\left(x, -z, \mathsf{fma}\left(1, x, 1 \cdot y\right)\right) + \left(-z\right) \cdot ydouble f(double x, double y, double z) {
double r31981 = x;
double r31982 = y;
double r31983 = r31981 + r31982;
double r31984 = 1.0;
double r31985 = z;
double r31986 = r31984 - r31985;
double r31987 = r31983 * r31986;
return r31987;
}
double f(double x, double y, double z) {
double r31988 = x;
double r31989 = z;
double r31990 = -r31989;
double r31991 = 1.0;
double r31992 = y;
double r31993 = r31991 * r31992;
double r31994 = fma(r31991, r31988, r31993);
double r31995 = fma(r31988, r31990, r31994);
double r31996 = r31990 * r31992;
double r31997 = r31995 + r31996;
return r31997;
}



Bits error versus x



Bits error versus y



Bits error versus z
Initial program 0.0
rmApplied sub-neg0.0
Applied distribute-lft-in0.0
Simplified0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Applied associate-+r+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020036 +o rules:numerics
(FPCore (x y z)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, H"
:precision binary64
(* (+ x y) (- 1 z)))