Average Error: 0.1 → 0.1
Time: 12.4s
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 r1863361 = x;
        double r1863362 = y;
        double r1863363 = r1863361 * r1863362;
        double r1863364 = 1.0;
        double r1863365 = r1863364 - r1863362;
        double r1863366 = r1863363 * r1863365;
        return r1863366;
}

double f(double x, double y) {
        double r1863367 = 1.0;
        double r1863368 = y;
        double r1863369 = r1863367 - r1863368;
        double r1863370 = x;
        double r1863371 = r1863370 * r1863368;
        double r1863372 = r1863369 * r1863371;
        return r1863372;
}

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