\left(x \cdot y\right) \cdot \left(1 - y\right)
\left(x \cdot \left(1 - y\right)\right) \cdot y
double f(double x, double y) {
double r24711 = x;
double r24712 = y;
double r24713 = r24711 * r24712;
double r24714 = 1.0;
double r24715 = r24714 - r24712;
double r24716 = r24713 * r24715;
return r24716;
}
double f(double x, double y) {
double r24717 = x;
double r24718 = 1.0;
double r24719 = y;
double r24720 = r24718 - r24719;
double r24721 = r24717 * r24720;
double r24722 = r24721 * r24719;
return r24722;
}



Bits error versus x



Bits error versus y
Results
Initial program 0.1
rmApplied add-cube-cbrt0.4
Applied add-cube-cbrt0.4
Applied prod-diff0.4
Applied distribute-lft-in0.4
Simplified0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019326 +o rules:numerics
(FPCore (x y)
:name "Statistics.Distribution.Binomial:$cvariance from math-functions-0.1.5.2"
:precision binary64
(* (* x y) (- 1 y)))