Average Error: 0.1 → 0.1
Time: 33.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 r1926315 = x;
        double r1926316 = y;
        double r1926317 = r1926315 * r1926316;
        double r1926318 = 1.0;
        double r1926319 = r1926318 - r1926316;
        double r1926320 = r1926317 * r1926319;
        return r1926320;
}

double f(double x, double y) {
        double r1926321 = 1.0;
        double r1926322 = y;
        double r1926323 = r1926321 - r1926322;
        double r1926324 = x;
        double r1926325 = r1926324 * r1926322;
        double r1926326 = r1926323 * r1926325;
        return r1926326;
}

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