Average Error: 0.1 → 0.1
Time: 2.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 r18894 = x;
        double r18895 = y;
        double r18896 = r18894 * r18895;
        double r18897 = 1.0;
        double r18898 = r18897 - r18895;
        double r18899 = r18896 * r18898;
        return r18899;
}

double f(double x, double y) {
        double r18900 = x;
        double r18901 = y;
        double r18902 = r18900 * r18901;
        double r18903 = 1.0;
        double r18904 = r18903 - r18901;
        double r18905 = r18902 * r18904;
        return r18905;
}

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