Average Error: 0.0 → 0.0
Time: 10.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 r193589 = x;
        double r193590 = y;
        double r193591 = r193589 + r193590;
        double r193592 = r193589 * r193590;
        double r193593 = r193591 - r193592;
        return r193593;
}

double f(double x, double y) {
        double r193594 = x;
        double r193595 = y;
        double r193596 = r193594 + r193595;
        double r193597 = r193595 * r193594;
        double r193598 = r193596 - r193597;
        return r193598;
}

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 2019195 
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, A"
  (- (+ x y) (* x y)))