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 r22023 = x;
        double r22024 = y;
        double r22025 = r22023 * r22024;
        double r22026 = 1.0;
        double r22027 = r22026 - r22024;
        double r22028 = r22025 * r22027;
        return r22028;
}

double f(double x, double y) {
        double r22029 = x;
        double r22030 = y;
        double r22031 = r22029 * r22030;
        double r22032 = 1.0;
        double r22033 = r22032 - r22030;
        double r22034 = r22031 * r22033;
        return r22034;
}

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