Average Error: 0.1 → 0.1
Time: 15.3s
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 r1623755 = x;
        double r1623756 = y;
        double r1623757 = r1623755 * r1623756;
        double r1623758 = 1.0;
        double r1623759 = r1623758 - r1623756;
        double r1623760 = r1623757 * r1623759;
        return r1623760;
}

double f(double x, double y) {
        double r1623761 = 1.0;
        double r1623762 = y;
        double r1623763 = r1623761 - r1623762;
        double r1623764 = x;
        double r1623765 = r1623764 * r1623762;
        double r1623766 = r1623763 * r1623765;
        return r1623766;
}

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