Average Error: 0.1 → 0.1
Time: 2.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 r28498 = x;
        double r28499 = y;
        double r28500 = r28498 * r28499;
        double r28501 = 1.0;
        double r28502 = r28501 - r28499;
        double r28503 = r28500 * r28502;
        return r28503;
}

double f(double x, double y) {
        double r28504 = x;
        double r28505 = y;
        double r28506 = r28504 * r28505;
        double r28507 = 1.0;
        double r28508 = r28507 - r28505;
        double r28509 = r28506 * r28508;
        return r28509;
}

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