Average Error: 0.0 → 0.0
Time: 4.8s
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 r426476 = x;
        double r426477 = y;
        double r426478 = r426476 + r426477;
        double r426479 = r426478 + r426476;
        return r426479;
}

double f(double x, double y) {
        double r426480 = x;
        double r426481 = y;
        double r426482 = r426481 + r426480;
        double r426483 = r426480 + r426482;
        return r426483;
}

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 2019194 
(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))