Average Error: 0.1 → 0.1
Time: 7.5s
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 r20662 = x;
        double r20663 = y;
        double r20664 = r20662 * r20663;
        double r20665 = 1.0;
        double r20666 = r20665 - r20663;
        double r20667 = r20664 * r20666;
        return r20667;
}

double f(double x, double y) {
        double r20668 = x;
        double r20669 = y;
        double r20670 = r20668 * r20669;
        double r20671 = 1.0;
        double r20672 = r20671 - r20669;
        double r20673 = r20670 * r20672;
        return r20673;
}

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