Average Error: 0.0 → 0.0
Time: 7.2s
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 r22982333 = x;
        double r22982334 = y;
        double r22982335 = r22982333 + r22982334;
        double r22982336 = r22982335 + r22982333;
        return r22982336;
}

double f(double x, double y) {
        double r22982337 = x;
        double r22982338 = y;
        double r22982339 = r22982338 + r22982337;
        double r22982340 = r22982337 + r22982339;
        return r22982340;
}

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