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 r21903 = x;
        double r21904 = y;
        double r21905 = r21903 * r21904;
        double r21906 = 1.0;
        double r21907 = r21906 - r21904;
        double r21908 = r21905 * r21907;
        return r21908;
}

double f(double x, double y) {
        double r21909 = x;
        double r21910 = y;
        double r21911 = r21909 * r21910;
        double r21912 = 1.0;
        double r21913 = r21912 - r21910;
        double r21914 = r21911 * r21913;
        return r21914;
}

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