Average Error: 0.1 → 0.1
Time: 12.9s
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 r46333 = x;
        double r46334 = y;
        double r46335 = r46333 * r46334;
        double r46336 = 1.0;
        double r46337 = r46336 - r46334;
        double r46338 = r46335 * r46337;
        return r46338;
}

double f(double x, double y) {
        double r46339 = x;
        double r46340 = y;
        double r46341 = r46339 * r46340;
        double r46342 = 1.0;
        double r46343 = r46342 - r46340;
        double r46344 = r46341 * r46343;
        return r46344;
}

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