Average Error: 0.1 → 0.1
Time: 8.2s
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 r32337 = x;
        double r32338 = y;
        double r32339 = r32337 * r32338;
        double r32340 = 1.0;
        double r32341 = r32340 - r32338;
        double r32342 = r32339 * r32341;
        return r32342;
}

double f(double x, double y) {
        double r32343 = x;
        double r32344 = y;
        double r32345 = r32343 * r32344;
        double r32346 = 1.0;
        double r32347 = r32346 - r32344;
        double r32348 = r32345 * r32347;
        return r32348;
}

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