Average Error: 0.1 → 0.1
Time: 8.7s
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 r29804 = x;
        double r29805 = y;
        double r29806 = r29804 * r29805;
        double r29807 = 1.0;
        double r29808 = r29807 - r29805;
        double r29809 = r29806 * r29808;
        return r29809;
}

double f(double x, double y) {
        double r29810 = x;
        double r29811 = y;
        double r29812 = r29810 * r29811;
        double r29813 = 1.0;
        double r29814 = r29813 - r29811;
        double r29815 = r29812 * r29814;
        return r29815;
}

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