Average Error: 0.1 → 0.1
Time: 22.5s
Precision: 64
\[\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x\]
\[x + \left(z + 2 \cdot \left(x + y\right)\right)\]
\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x
x + \left(z + 2 \cdot \left(x + y\right)\right)
double f(double x, double y, double z) {
        double r122240 = x;
        double r122241 = y;
        double r122242 = r122240 + r122241;
        double r122243 = r122242 + r122241;
        double r122244 = r122243 + r122240;
        double r122245 = z;
        double r122246 = r122244 + r122245;
        double r122247 = r122246 + r122240;
        return r122247;
}

double f(double x, double y, double z) {
        double r122248 = x;
        double r122249 = z;
        double r122250 = 2.0;
        double r122251 = y;
        double r122252 = r122248 + r122251;
        double r122253 = r122250 * r122252;
        double r122254 = r122249 + r122253;
        double r122255 = r122248 + r122254;
        return r122255;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x\]
  2. Simplified0.1

    \[\leadsto \color{blue}{x + \left(z + 2 \cdot \left(x + y\right)\right)}\]
  3. Final simplification0.1

    \[\leadsto x + \left(z + 2 \cdot \left(x + y\right)\right)\]

Reproduce

herbie shell --seed 2019199 
(FPCore (x y z)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendInside from plot-0.2.3.4"
  (+ (+ (+ (+ (+ x y) y) x) z) x))