Average Error: 0.1 → 0.1
Time: 13.3s
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 r1892060 = x;
        double r1892061 = y;
        double r1892062 = r1892060 * r1892061;
        double r1892063 = 1.0;
        double r1892064 = r1892063 - r1892061;
        double r1892065 = r1892062 * r1892064;
        return r1892065;
}

double f(double x, double y) {
        double r1892066 = 1.0;
        double r1892067 = y;
        double r1892068 = r1892066 - r1892067;
        double r1892069 = x;
        double r1892070 = r1892069 * r1892067;
        double r1892071 = r1892068 * r1892070;
        return r1892071;
}

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