Average Error: 0.1 → 0.1
Time: 13.1s
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 r176095 = x;
        double r176096 = y;
        double r176097 = r176095 + r176096;
        double r176098 = r176097 + r176096;
        double r176099 = r176098 + r176095;
        double r176100 = z;
        double r176101 = r176099 + r176100;
        double r176102 = r176101 + r176095;
        return r176102;
}

double f(double x, double y, double z) {
        double r176103 = x;
        double r176104 = z;
        double r176105 = 2.0;
        double r176106 = y;
        double r176107 = r176103 + r176106;
        double r176108 = r176105 * r176107;
        double r176109 = r176104 + r176108;
        double r176110 = r176103 + r176109;
        return r176110;
}

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