Average Error: 0.1 → 0.1
Time: 10.8s
Precision: 64
\[\left(x \cdot y\right) \cdot \left(1 - y\right)\]
\[\left(x \cdot y\right) \cdot \left(1 - y\right)\]
\left(x \cdot y\right) \cdot \left(1 - y\right)
\left(x \cdot y\right) \cdot \left(1 - y\right)
double f(double x, double y) {
        double r24437 = x;
        double r24438 = y;
        double r24439 = r24437 * r24438;
        double r24440 = 1.0;
        double r24441 = r24440 - r24438;
        double r24442 = r24439 * r24441;
        return r24442;
}

double f(double x, double y) {
        double r24443 = x;
        double r24444 = y;
        double r24445 = r24443 * r24444;
        double r24446 = 1.0;
        double r24447 = r24446 - r24444;
        double r24448 = r24445 * r24447;
        return r24448;
}

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(x \cdot y\right) \cdot \left(1 - y\right)\]

Reproduce

herbie shell --seed 2019350 +o rules:numerics
(FPCore (x y)
  :name "Statistics.Distribution.Binomial:$cvariance from math-functions-0.1.5.2"
  :precision binary64
  (* (* x y) (- 1 y)))