Average Error: 0.1 → 0.1
Time: 18.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 r33016 = x;
        double r33017 = y;
        double r33018 = r33016 * r33017;
        double r33019 = 1.0;
        double r33020 = r33019 - r33017;
        double r33021 = r33018 * r33020;
        return r33021;
}

double f(double x, double y) {
        double r33022 = x;
        double r33023 = y;
        double r33024 = r33022 * r33023;
        double r33025 = 1.0;
        double r33026 = r33025 - r33023;
        double r33027 = r33024 * r33026;
        return r33027;
}

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