Average Error: 0.1 → 0.1
Time: 2.9s
Precision: 64
\[\left(x \cdot y\right) \cdot \left(1 - y\right)\]
\[\left(x \cdot y\right) \cdot \left(1 - y\right)\]
\left(x \cdot y\right) \cdot \left(1 - y\right)
\left(x \cdot y\right) \cdot \left(1 - y\right)
double f(double x, double y) {
        double r27698 = x;
        double r27699 = y;
        double r27700 = r27698 * r27699;
        double r27701 = 1.0;
        double r27702 = r27701 - r27699;
        double r27703 = r27700 * r27702;
        return r27703;
}

double f(double x, double y) {
        double r27704 = x;
        double r27705 = y;
        double r27706 = r27704 * r27705;
        double r27707 = 1.0;
        double r27708 = r27707 - r27705;
        double r27709 = r27706 * r27708;
        return r27709;
}

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(x \cdot y\right) \cdot \left(1 - y\right)\]

Reproduce

herbie shell --seed 2020056 
(FPCore (x y)
  :name "Statistics.Distribution.Binomial:$cvariance from math-functions-0.1.5.2"
  :precision binary64
  (* (* x y) (- 1 y)))