Average Error: 0.1 → 0.1
Time: 7.6s
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 r221654 = x;
        double r221655 = y;
        double r221656 = r221654 + r221655;
        double r221657 = r221656 + r221655;
        double r221658 = r221657 + r221654;
        double r221659 = z;
        double r221660 = r221658 + r221659;
        double r221661 = r221660 + r221654;
        return r221661;
}

double f(double x, double y, double z) {
        double r221662 = x;
        double r221663 = z;
        double r221664 = 2.0;
        double r221665 = y;
        double r221666 = r221662 + r221665;
        double r221667 = r221664 * r221666;
        double r221668 = r221663 + r221667;
        double r221669 = r221662 + r221668;
        return r221669;
}

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