Average Error: 0.1 → 0.1
Time: 6.1s
Precision: 64
\[\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x\]
\[2 \cdot \left(x + y\right) + \left(x + z\right)\]
\left(\left(\left(\left(x + y\right) + y\right) + x\right) + z\right) + x
2 \cdot \left(x + y\right) + \left(x + z\right)
double f(double x, double y, double z) {
        double r180829 = x;
        double r180830 = y;
        double r180831 = r180829 + r180830;
        double r180832 = r180831 + r180830;
        double r180833 = r180832 + r180829;
        double r180834 = z;
        double r180835 = r180833 + r180834;
        double r180836 = r180835 + r180829;
        return r180836;
}

double f(double x, double y, double z) {
        double r180837 = 2.0;
        double r180838 = x;
        double r180839 = y;
        double r180840 = r180838 + r180839;
        double r180841 = r180837 * r180840;
        double r180842 = z;
        double r180843 = r180838 + r180842;
        double r180844 = r180841 + r180843;
        return r180844;
}

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}{2 \cdot \left(x + y\right) + \left(x + z\right)}\]
  3. Final simplification0.1

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

Reproduce

herbie shell --seed 2020025 
(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))