Average Error: 0.0 → 0.0
Time: 5.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 r29826179 = x;
        double r29826180 = y;
        double r29826181 = r29826179 + r29826180;
        double r29826182 = r29826181 + r29826179;
        return r29826182;
}

double f(double x, double y) {
        double r29826183 = x;
        double r29826184 = y;
        double r29826185 = r29826184 + r29826183;
        double r29826186 = r29826183 + r29826185;
        return r29826186;
}

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