Average Error: 0.0 → 0.0
Time: 6.3s
Precision: 64
\[\left(x + y\right) - x \cdot y\]
\[\left(x + y\right) - y \cdot x\]
\left(x + y\right) - x \cdot y
\left(x + y\right) - y \cdot x
double f(double x, double y) {
        double r206381 = x;
        double r206382 = y;
        double r206383 = r206381 + r206382;
        double r206384 = r206381 * r206382;
        double r206385 = r206383 - r206384;
        return r206385;
}

double f(double x, double y) {
        double r206386 = x;
        double r206387 = y;
        double r206388 = r206386 + r206387;
        double r206389 = r206387 * r206386;
        double r206390 = r206388 - r206389;
        return r206390;
}

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.0

    \[\left(x + y\right) - x \cdot y\]
  2. Simplified0.0

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

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

Reproduce

herbie shell --seed 2019196 
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, A"
  (- (+ x y) (* x y)))