Average Error: 0.1 → 0.1
Time: 11.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 r33845 = x;
        double r33846 = y;
        double r33847 = r33845 * r33846;
        double r33848 = 1.0;
        double r33849 = r33848 - r33846;
        double r33850 = r33847 * r33849;
        return r33850;
}

double f(double x, double y) {
        double r33851 = x;
        double r33852 = y;
        double r33853 = r33851 * r33852;
        double r33854 = 1.0;
        double r33855 = r33854 - r33852;
        double r33856 = r33853 * r33855;
        return r33856;
}

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. Simplified0.1

    \[\leadsto \color{blue}{\left(1 - y\right) \cdot \left(x \cdot y\right)}\]
  3. Final simplification0.1

    \[\leadsto \left(x \cdot y\right) \cdot \left(1 - y\right)\]

Reproduce

herbie shell --seed 2019194 +o rules:numerics
(FPCore (x y)
  :name "Statistics.Distribution.Binomial:$cvariance from math-functions-0.1.5.2"
  (* (* x y) (- 1.0 y)))