Average Error: 0.1 → 0.1
Time: 16.9s
Precision: 64
\[\left(x \cdot y\right) \cdot \left(1 - y\right)\]
\[\left(1 - y\right) \cdot \left(x \cdot y\right)\]
\left(x \cdot y\right) \cdot \left(1 - y\right)
\left(1 - y\right) \cdot \left(x \cdot y\right)
double f(double x, double y) {
        double r1303803 = x;
        double r1303804 = y;
        double r1303805 = r1303803 * r1303804;
        double r1303806 = 1.0;
        double r1303807 = r1303806 - r1303804;
        double r1303808 = r1303805 * r1303807;
        return r1303808;
}

double f(double x, double y) {
        double r1303809 = 1.0;
        double r1303810 = y;
        double r1303811 = r1303809 - r1303810;
        double r1303812 = x;
        double r1303813 = r1303812 * r1303810;
        double r1303814 = r1303811 * r1303813;
        return r1303814;
}

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

Reproduce

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