Average Error: 0.1 → 0.1
Time: 16.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 r23743 = x;
        double r23744 = y;
        double r23745 = r23743 * r23744;
        double r23746 = 1.0;
        double r23747 = r23746 - r23744;
        double r23748 = r23745 * r23747;
        return r23748;
}

double f(double x, double y) {
        double r23749 = x;
        double r23750 = y;
        double r23751 = r23749 * r23750;
        double r23752 = 1.0;
        double r23753 = r23752 - r23750;
        double r23754 = r23751 * r23753;
        return r23754;
}

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