Average Error: 0.1 → 0.1
Time: 12.6s
Precision: 64
\[\left(x \cdot y\right) \cdot \left(1.0 - y\right)\]
\[\left(1.0 - y\right) \cdot \left(x \cdot y\right)\]
\left(x \cdot y\right) \cdot \left(1.0 - y\right)
\left(1.0 - y\right) \cdot \left(x \cdot y\right)
double f(double x, double y) {
        double r2486779 = x;
        double r2486780 = y;
        double r2486781 = r2486779 * r2486780;
        double r2486782 = 1.0;
        double r2486783 = r2486782 - r2486780;
        double r2486784 = r2486781 * r2486783;
        return r2486784;
}

double f(double x, double y) {
        double r2486785 = 1.0;
        double r2486786 = y;
        double r2486787 = r2486785 - r2486786;
        double r2486788 = x;
        double r2486789 = r2486788 * r2486786;
        double r2486790 = r2486787 * r2486789;
        return r2486790;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\left(x \cdot y\right) \cdot \left(1.0 - y\right)\]
  2. Final simplification0.1

    \[\leadsto \left(1.0 - y\right) \cdot \left(x \cdot y\right)\]

Reproduce

herbie shell --seed 2019162 
(FPCore (x y)
  :name "Statistics.Distribution.Binomial:$cvariance from math-functions-0.1.5.2"
  (* (* x y) (- 1.0 y)))