Average Error: 0.1 → 0.1
Time: 1.8m
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[x \cdot \left(\left(\left(z + y\right) + \left(z + y\right)\right) + 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(\left(z + y\right) + \left(z + y\right)\right) + t\right) + y \cdot 5
double f(double x, double y, double z, double t) {
        double r6938039 = x;
        double r6938040 = y;
        double r6938041 = z;
        double r6938042 = r6938040 + r6938041;
        double r6938043 = r6938042 + r6938041;
        double r6938044 = r6938043 + r6938040;
        double r6938045 = t;
        double r6938046 = r6938044 + r6938045;
        double r6938047 = r6938039 * r6938046;
        double r6938048 = 5.0;
        double r6938049 = r6938040 * r6938048;
        double r6938050 = r6938047 + r6938049;
        return r6938050;
}

double f(double x, double y, double z, double t) {
        double r6938051 = x;
        double r6938052 = z;
        double r6938053 = y;
        double r6938054 = r6938052 + r6938053;
        double r6938055 = r6938054 + r6938054;
        double r6938056 = t;
        double r6938057 = r6938055 + r6938056;
        double r6938058 = r6938051 * r6938057;
        double r6938059 = 5.0;
        double r6938060 = r6938053 * r6938059;
        double r6938061 = r6938058 + r6938060;
        return r6938061;
}

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

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

Reproduce

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