Average Error: 0.1 → 0.1
Time: 9.8s
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 r28772 = x;
        double r28773 = y;
        double r28774 = r28772 * r28773;
        double r28775 = 1.0;
        double r28776 = r28775 - r28773;
        double r28777 = r28774 * r28776;
        return r28777;
}

double f(double x, double y) {
        double r28778 = x;
        double r28779 = y;
        double r28780 = r28778 * r28779;
        double r28781 = 1.0;
        double r28782 = r28781 - r28779;
        double r28783 = r28780 * r28782;
        return r28783;
}

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