Average Error: 0.1 → 0.1
Time: 21.8s
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 r136476 = x;
        double r136477 = y;
        double r136478 = z;
        double r136479 = r136477 + r136478;
        double r136480 = r136479 + r136478;
        double r136481 = r136480 + r136477;
        double r136482 = t;
        double r136483 = r136481 + r136482;
        double r136484 = r136476 * r136483;
        double r136485 = 5.0;
        double r136486 = r136477 * r136485;
        double r136487 = r136484 + r136486;
        return r136487;
}

double f(double x, double y, double z, double t) {
        double r136488 = y;
        double r136489 = 5.0;
        double r136490 = r136488 * r136489;
        double r136491 = 2.0;
        double r136492 = z;
        double r136493 = r136488 + r136492;
        double r136494 = r136491 * r136493;
        double r136495 = t;
        double r136496 = r136494 + r136495;
        double r136497 = x;
        double r136498 = r136496 * r136497;
        double r136499 = r136490 + r136498;
        return r136499;
}

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