Average Error: 0.1 → 0.1
Time: 11.3s
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 r23219 = x;
        double r23220 = y;
        double r23221 = r23219 * r23220;
        double r23222 = 1.0;
        double r23223 = r23222 - r23220;
        double r23224 = r23221 * r23223;
        return r23224;
}

double f(double x, double y) {
        double r23225 = x;
        double r23226 = y;
        double r23227 = r23225 * r23226;
        double r23228 = 1.0;
        double r23229 = r23228 - r23226;
        double r23230 = r23227 * r23229;
        return r23230;
}

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