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 r20220 = x;
        double r20221 = y;
        double r20222 = r20220 * r20221;
        double r20223 = 1.0;
        double r20224 = r20223 - r20221;
        double r20225 = r20222 * r20224;
        return r20225;
}

double f(double x, double y) {
        double r20226 = x;
        double r20227 = y;
        double r20228 = r20226 * r20227;
        double r20229 = 1.0;
        double r20230 = r20229 - r20227;
        double r20231 = r20228 * r20230;
        return r20231;
}

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