Average Error: 0.0 → 0.0
Time: 1.3s
Precision: 64
\[\left(x + y\right) + x\]
\[x + \left(y + x\right)\]
\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
        double r10784927 = x;
        double r10784928 = y;
        double r10784929 = r10784927 + r10784928;
        double r10784930 = r10784929 + r10784927;
        return r10784930;
}

double f(double x, double y) {
        double r10784931 = x;
        double r10784932 = y;
        double r10784933 = r10784932 + r10784931;
        double r10784934 = r10784931 + r10784933;
        return r10784934;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0
Herbie0.0
\[y + 2 \cdot x\]

Derivation

  1. Initial program 0.0

    \[\left(x + y\right) + x\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2019156 
(FPCore (x y)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"

  :herbie-target
  (+ y (* 2 x))

  (+ (+ x y) x))