Average Error: 0.0 → 0.0
Time: 11.0s
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 r27586024 = x;
        double r27586025 = y;
        double r27586026 = r27586024 + r27586025;
        double r27586027 = r27586026 + r27586024;
        return r27586027;
}

double f(double x, double y) {
        double r27586028 = x;
        double r27586029 = y;
        double r27586030 = r27586029 + r27586028;
        double r27586031 = r27586028 + r27586030;
        return r27586031;
}

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