\left(x \cdot y\right) \cdot \left(1 - y\right)
\left(\left(1 \cdot {\left(\sqrt[3]{1}\right)}^{3} + \left(-y\right)\right) \cdot x\right) \cdot y + \left(\mathsf{fma}\left(-y, 1, y\right) \cdot y\right) \cdot xdouble code(double x, double y) {
return ((double) (((double) (x * y)) * ((double) (1.0 - y))));
}
double code(double x, double y) {
return ((double) (((double) (((double) (((double) (((double) (1.0 * ((double) pow(((double) cbrt(1.0)), 3.0)))) + ((double) -(y)))) * x)) * y)) + ((double) (((double) (((double) fma(((double) -(y)), 1.0, y)) * y)) * x))));
}



Bits error versus x



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