Average Error: 0.1 → 0.1
Time: 6.7s
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 r699464 = x;
        double r699465 = y;
        double r699466 = r699464 * r699465;
        double r699467 = 1.0;
        double r699468 = r699467 - r699465;
        double r699469 = r699466 * r699468;
        return r699469;
}

double f(double x, double y) {
        double r699470 = 1.0;
        double r699471 = y;
        double r699472 = r699470 - r699471;
        double r699473 = x;
        double r699474 = r699473 * r699471;
        double r699475 = r699472 * r699474;
        return r699475;
}

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