Average Error: 0.1 → 0.1
Time: 8.9s
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 r91984 = x;
        double r91985 = y;
        double r91986 = r91984 + r91985;
        double r91987 = r91986 + r91985;
        double r91988 = r91987 + r91984;
        double r91989 = z;
        double r91990 = r91988 + r91989;
        double r91991 = r91990 + r91984;
        return r91991;
}

double f(double x, double y, double z) {
        double r91992 = x;
        double r91993 = z;
        double r91994 = 2.0;
        double r91995 = y;
        double r91996 = r91992 + r91995;
        double r91997 = r91994 * r91996;
        double r91998 = r91993 + r91997;
        double r91999 = r91992 + r91998;
        return r91999;
}

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 2019209 
(FPCore (x y z)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendInside from plot-0.2.3.4"
  :precision binary64
  (+ (+ (+ (+ (+ x y) y) x) z) x))