Average Error: 0.1 → 0.1
Time: 36.9s
Precision: 64
\[\left(x \cdot y\right) \cdot \left(1 - y\right)\]
\[\left(1 - y\right) \cdot \left(y \cdot x\right)\]
\left(x \cdot y\right) \cdot \left(1 - y\right)
\left(1 - y\right) \cdot \left(y \cdot x\right)
double f(double x, double y) {
        double r1702900 = x;
        double r1702901 = y;
        double r1702902 = r1702900 * r1702901;
        double r1702903 = 1.0;
        double r1702904 = r1702903 - r1702901;
        double r1702905 = r1702902 * r1702904;
        return r1702905;
}

double f(double x, double y) {
        double r1702906 = 1.0;
        double r1702907 = y;
        double r1702908 = r1702906 - r1702907;
        double r1702909 = x;
        double r1702910 = r1702907 * r1702909;
        double r1702911 = r1702908 * r1702910;
        return r1702911;
}

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

Reproduce

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