Average Error: 0.1 → 0.1
Time: 17.0s
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 r128653 = x;
        double r128654 = y;
        double r128655 = r128653 + r128654;
        double r128656 = r128655 + r128654;
        double r128657 = r128656 + r128653;
        double r128658 = z;
        double r128659 = r128657 + r128658;
        double r128660 = r128659 + r128653;
        return r128660;
}

double f(double x, double y, double z) {
        double r128661 = x;
        double r128662 = z;
        double r128663 = 2.0;
        double r128664 = y;
        double r128665 = r128661 + r128664;
        double r128666 = r128663 * r128665;
        double r128667 = r128662 + r128666;
        double r128668 = r128661 + r128667;
        return r128668;
}

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