Average Error: 0.1 → 0.1
Time: 8.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 r35390 = x;
        double r35391 = y;
        double r35392 = r35390 * r35391;
        double r35393 = 1.0;
        double r35394 = r35393 - r35391;
        double r35395 = r35392 * r35394;
        return r35395;
}

double f(double x, double y) {
        double r35396 = 1.0;
        double r35397 = y;
        double r35398 = r35396 - r35397;
        double r35399 = x;
        double r35400 = r35399 * r35397;
        double r35401 = r35398 * r35400;
        return r35401;
}

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 2019194 
(FPCore (x y)
  :name "Statistics.Distribution.Binomial:$cvariance from math-functions-0.1.5.2"
  (* (* x y) (- 1.0 y)))