Average Error: 0.1 → 0.1
Time: 17.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 r39768 = x;
        double r39769 = y;
        double r39770 = r39768 * r39769;
        double r39771 = 1.0;
        double r39772 = r39771 - r39769;
        double r39773 = r39770 * r39772;
        return r39773;
}

double f(double x, double y) {
        double r39774 = x;
        double r39775 = y;
        double r39776 = r39774 * r39775;
        double r39777 = 1.0;
        double r39778 = r39777 - r39775;
        double r39779 = r39776 * r39778;
        return r39779;
}

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