Average Error: 0.1 → 0.1
Time: 15.2s
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 r1830281 = x;
        double r1830282 = y;
        double r1830283 = r1830281 * r1830282;
        double r1830284 = 1.0;
        double r1830285 = r1830284 - r1830282;
        double r1830286 = r1830283 * r1830285;
        return r1830286;
}

double f(double x, double y) {
        double r1830287 = 1.0;
        double r1830288 = y;
        double r1830289 = r1830287 - r1830288;
        double r1830290 = x;
        double r1830291 = r1830290 * r1830288;
        double r1830292 = r1830289 * r1830291;
        return r1830292;
}

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