Average Error: 0.1 → 0.1
Time: 13.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 r37891 = x;
        double r37892 = y;
        double r37893 = r37891 * r37892;
        double r37894 = 1.0;
        double r37895 = r37894 - r37892;
        double r37896 = r37893 * r37895;
        return r37896;
}

double f(double x, double y) {
        double r37897 = x;
        double r37898 = y;
        double r37899 = r37897 * r37898;
        double r37900 = 1.0;
        double r37901 = r37900 - r37898;
        double r37902 = r37899 * r37901;
        return r37902;
}

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