Average Error: 0.1 → 0.1
Time: 12.1s
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 r26182 = x;
        double r26183 = y;
        double r26184 = r26182 * r26183;
        double r26185 = 1.0;
        double r26186 = r26185 - r26183;
        double r26187 = r26184 * r26186;
        return r26187;
}

double f(double x, double y) {
        double r26188 = 1.0;
        double r26189 = y;
        double r26190 = r26188 - r26189;
        double r26191 = x;
        double r26192 = r26191 * r26189;
        double r26193 = r26190 * r26192;
        return r26193;
}

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