Average Error: 0.1 → 0.1
Time: 29.2s
Precision: 64
\[\left(x \cdot y\right) \cdot \left(1 - y\right)\]
\[\left(1 - y\right) \cdot \left(x \cdot y\right)\]
\left(x \cdot y\right) \cdot \left(1 - y\right)
\left(1 - y\right) \cdot \left(x \cdot y\right)
double f(double x, double y) {
        double r1921742 = x;
        double r1921743 = y;
        double r1921744 = r1921742 * r1921743;
        double r1921745 = 1.0;
        double r1921746 = r1921745 - r1921743;
        double r1921747 = r1921744 * r1921746;
        return r1921747;
}

double f(double x, double y) {
        double r1921748 = 1.0;
        double r1921749 = y;
        double r1921750 = r1921748 - r1921749;
        double r1921751 = x;
        double r1921752 = r1921751 * r1921749;
        double r1921753 = r1921750 * r1921752;
        return r1921753;
}

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 - y\right)\]
  2. Final simplification0.1

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

Reproduce

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