Average Error: 0.1 → 0.1
Time: 17.2s
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[x \cdot \left(\left(z + y\right) \cdot 2 + t\right) + y \cdot 5\]
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
x \cdot \left(\left(z + y\right) \cdot 2 + t\right) + y \cdot 5
double f(double x, double y, double z, double t) {
        double r136112 = x;
        double r136113 = y;
        double r136114 = z;
        double r136115 = r136113 + r136114;
        double r136116 = r136115 + r136114;
        double r136117 = r136116 + r136113;
        double r136118 = t;
        double r136119 = r136117 + r136118;
        double r136120 = r136112 * r136119;
        double r136121 = 5.0;
        double r136122 = r136113 * r136121;
        double r136123 = r136120 + r136122;
        return r136123;
}

double f(double x, double y, double z, double t) {
        double r136124 = x;
        double r136125 = z;
        double r136126 = y;
        double r136127 = r136125 + r136126;
        double r136128 = 2.0;
        double r136129 = r136127 * r136128;
        double r136130 = t;
        double r136131 = r136129 + r136130;
        double r136132 = r136124 * r136131;
        double r136133 = 5.0;
        double r136134 = r136126 * r136133;
        double r136135 = r136132 + r136134;
        return r136135;
}

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. Simplified0.1

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

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

Reproduce

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