Average Error: 0.1 → 0.1
Time: 2.8s
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 r22663 = x;
        double r22664 = y;
        double r22665 = r22663 * r22664;
        double r22666 = 1.0;
        double r22667 = r22666 - r22664;
        double r22668 = r22665 * r22667;
        return r22668;
}

double f(double x, double y) {
        double r22669 = x;
        double r22670 = y;
        double r22671 = r22669 * r22670;
        double r22672 = 1.0;
        double r22673 = r22672 - r22670;
        double r22674 = r22671 * r22673;
        return r22674;
}

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