Average Error: 0.0 → 0.0
Time: 56.7s
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 r14169808 = x;
        double r14169809 = y;
        double r14169810 = r14169808 + r14169809;
        double r14169811 = r14169808 * r14169809;
        double r14169812 = r14169810 - r14169811;
        return r14169812;
}

double f(double x, double y) {
        double r14169813 = x;
        double r14169814 = y;
        double r14169815 = r14169813 + r14169814;
        double r14169816 = r14169814 * r14169813;
        double r14169817 = r14169815 - r14169816;
        return r14169817;
}

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

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

Reproduce

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