Average Error: 0.0 → 0.0
Time: 9.5s
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 r439776 = x;
        double r439777 = y;
        double r439778 = r439776 + r439777;
        double r439779 = r439778 + r439776;
        return r439779;
}

double f(double x, double y) {
        double r439780 = x;
        double r439781 = y;
        double r439782 = r439781 + r439780;
        double r439783 = r439780 + r439782;
        return r439783;
}

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 2019179 
(FPCore (x y)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"

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

  (+ (+ x y) x))