Average Error: 0.1 → 0.1
Time: 11.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 r148932 = x;
        double r148933 = y;
        double r148934 = r148932 + r148933;
        double r148935 = r148934 + r148933;
        double r148936 = r148935 + r148932;
        double r148937 = z;
        double r148938 = r148936 + r148937;
        double r148939 = r148938 + r148932;
        return r148939;
}

double f(double x, double y, double z) {
        double r148940 = x;
        double r148941 = z;
        double r148942 = 2.0;
        double r148943 = y;
        double r148944 = r148940 + r148943;
        double r148945 = r148942 * r148944;
        double r148946 = r148941 + r148945;
        double r148947 = r148940 + r148946;
        return r148947;
}

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