Average Error: 0.1 → 0.1
Time: 17.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 r41376 = x;
        double r41377 = y;
        double r41378 = r41376 * r41377;
        double r41379 = 1.0;
        double r41380 = r41379 - r41377;
        double r41381 = r41378 * r41380;
        return r41381;
}

double f(double x, double y) {
        double r41382 = x;
        double r41383 = y;
        double r41384 = r41382 * r41383;
        double r41385 = 1.0;
        double r41386 = r41385 - r41383;
        double r41387 = r41384 * r41386;
        return r41387;
}

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