Average Error: 0.1 → 0.1
Time: 29.5s
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[y \cdot 5 + \left(2 \cdot \left(y + z\right) + t\right) \cdot x\]
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
y \cdot 5 + \left(2 \cdot \left(y + z\right) + t\right) \cdot x
double f(double x, double y, double z, double t) {
        double r169153 = x;
        double r169154 = y;
        double r169155 = z;
        double r169156 = r169154 + r169155;
        double r169157 = r169156 + r169155;
        double r169158 = r169157 + r169154;
        double r169159 = t;
        double r169160 = r169158 + r169159;
        double r169161 = r169153 * r169160;
        double r169162 = 5.0;
        double r169163 = r169154 * r169162;
        double r169164 = r169161 + r169163;
        return r169164;
}

double f(double x, double y, double z, double t) {
        double r169165 = y;
        double r169166 = 5.0;
        double r169167 = r169165 * r169166;
        double r169168 = 2.0;
        double r169169 = z;
        double r169170 = r169165 + r169169;
        double r169171 = r169168 * r169170;
        double r169172 = t;
        double r169173 = r169171 + r169172;
        double r169174 = x;
        double r169175 = r169173 * r169174;
        double r169176 = r169167 + r169175;
        return r169176;
}

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

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

Reproduce

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