Average Error: 0.0 → 0.0
Time: 6.1s
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 r29247541 = x;
        double r29247542 = y;
        double r29247543 = r29247541 + r29247542;
        double r29247544 = r29247543 + r29247541;
        return r29247544;
}

double f(double x, double y) {
        double r29247545 = x;
        double r29247546 = y;
        double r29247547 = r29247546 + r29247545;
        double r29247548 = r29247545 + r29247547;
        return r29247548;
}

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