Average Error: 0.1 → 0.1
Time: 8.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 r30500 = x;
        double r30501 = y;
        double r30502 = r30500 * r30501;
        double r30503 = 1.0;
        double r30504 = r30503 - r30501;
        double r30505 = r30502 * r30504;
        return r30505;
}

double f(double x, double y) {
        double r30506 = x;
        double r30507 = y;
        double r30508 = r30506 * r30507;
        double r30509 = 1.0;
        double r30510 = r30509 - r30507;
        double r30511 = r30508 * r30510;
        return r30511;
}

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. Simplified0.1

    \[\leadsto \color{blue}{\left(1 - y\right) \cdot \left(x \cdot y\right)}\]
  3. Final simplification0.1

    \[\leadsto \left(x \cdot y\right) \cdot \left(1 - y\right)\]

Reproduce

herbie shell --seed 2019179 
(FPCore (x y)
  :name "Statistics.Distribution.Binomial:$cvariance from math-functions-0.1.5.2"
  (* (* x y) (- 1.0 y)))