Average Error: 0.1 → 0.1
Time: 17.0s
Precision: 64
\[\left(x \cdot y\right) \cdot \left(1.0 - y\right)\]
\[\left(y \cdot x\right) \cdot \left(-y\right) + \left(y \cdot x\right) \cdot 1.0\]
\left(x \cdot y\right) \cdot \left(1.0 - y\right)
\left(y \cdot x\right) \cdot \left(-y\right) + \left(y \cdot x\right) \cdot 1.0
double f(double x, double y) {
        double r1486939 = x;
        double r1486940 = y;
        double r1486941 = r1486939 * r1486940;
        double r1486942 = 1.0;
        double r1486943 = r1486942 - r1486940;
        double r1486944 = r1486941 * r1486943;
        return r1486944;
}

double f(double x, double y) {
        double r1486945 = y;
        double r1486946 = x;
        double r1486947 = r1486945 * r1486946;
        double r1486948 = -r1486945;
        double r1486949 = r1486947 * r1486948;
        double r1486950 = 1.0;
        double r1486951 = r1486947 * r1486950;
        double r1486952 = r1486949 + r1486951;
        return r1486952;
}

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.0 - y\right)\]
  2. Using strategy rm
  3. Applied sub-neg0.1

    \[\leadsto \left(x \cdot y\right) \cdot \color{blue}{\left(1.0 + \left(-y\right)\right)}\]
  4. Applied distribute-rgt-in0.1

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

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

Reproduce

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