Average Error: 0.1 → 0.1
Time: 16.6s
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 r181393 = x;
        double r181394 = y;
        double r181395 = z;
        double r181396 = r181394 + r181395;
        double r181397 = r181396 + r181395;
        double r181398 = r181397 + r181394;
        double r181399 = t;
        double r181400 = r181398 + r181399;
        double r181401 = r181393 * r181400;
        double r181402 = 5.0;
        double r181403 = r181394 * r181402;
        double r181404 = r181401 + r181403;
        return r181404;
}

double f(double x, double y, double z, double t) {
        double r181405 = y;
        double r181406 = 5.0;
        double r181407 = r181405 * r181406;
        double r181408 = 2.0;
        double r181409 = z;
        double r181410 = r181405 + r181409;
        double r181411 = r181408 * r181410;
        double r181412 = t;
        double r181413 = r181411 + r181412;
        double r181414 = x;
        double r181415 = r181413 * r181414;
        double r181416 = r181407 + r181415;
        return r181416;
}

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