Average Error: 0.1 → 0.1
Time: 4.1s
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 r26475 = x;
        double r26476 = y;
        double r26477 = r26475 * r26476;
        double r26478 = 1.0;
        double r26479 = r26478 - r26476;
        double r26480 = r26477 * r26479;
        return r26480;
}

double f(double x, double y) {
        double r26481 = x;
        double r26482 = y;
        double r26483 = r26481 * r26482;
        double r26484 = 1.0;
        double r26485 = r26484 - r26482;
        double r26486 = r26483 * r26485;
        return r26486;
}

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