Average Error: 0.1 → 0.1
Time: 12.7s
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[\left(\left(2 \cdot x\right) \cdot \left(y + z\right) + x \cdot t\right) + y \cdot 5\]
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
\left(\left(2 \cdot x\right) \cdot \left(y + z\right) + x \cdot t\right) + y \cdot 5
double f(double x, double y, double z, double t) {
        double r141754 = x;
        double r141755 = y;
        double r141756 = z;
        double r141757 = r141755 + r141756;
        double r141758 = r141757 + r141756;
        double r141759 = r141758 + r141755;
        double r141760 = t;
        double r141761 = r141759 + r141760;
        double r141762 = r141754 * r141761;
        double r141763 = 5.0;
        double r141764 = r141755 * r141763;
        double r141765 = r141762 + r141764;
        return r141765;
}

double f(double x, double y, double z, double t) {
        double r141766 = 2.0;
        double r141767 = x;
        double r141768 = r141766 * r141767;
        double r141769 = y;
        double r141770 = z;
        double r141771 = r141769 + r141770;
        double r141772 = r141768 * r141771;
        double r141773 = t;
        double r141774 = r141767 * r141773;
        double r141775 = r141772 + r141774;
        double r141776 = 5.0;
        double r141777 = r141769 * r141776;
        double r141778 = r141775 + r141777;
        return r141778;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
  2. Using strategy rm
  3. Applied distribute-lft-in0.1

    \[\leadsto \color{blue}{\left(x \cdot \left(\left(\left(y + z\right) + z\right) + y\right) + x \cdot t\right)} + y \cdot 5\]
  4. Simplified0.1

    \[\leadsto \left(\color{blue}{\left(2 \cdot x\right) \cdot \left(y + z\right)} + x \cdot t\right) + y \cdot 5\]
  5. Final simplification0.1

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

Reproduce

herbie shell --seed 2019356 
(FPCore (x y z t)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, B"
  :precision binary64
  (+ (* x (+ (+ (+ (+ y z) z) y) t)) (* y 5)))