Average Error: 0.1 → 0.1
Time: 16.2s
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 r228352 = x;
        double r228353 = y;
        double r228354 = z;
        double r228355 = r228353 + r228354;
        double r228356 = r228355 + r228354;
        double r228357 = r228356 + r228353;
        double r228358 = t;
        double r228359 = r228357 + r228358;
        double r228360 = r228352 * r228359;
        double r228361 = 5.0;
        double r228362 = r228353 * r228361;
        double r228363 = r228360 + r228362;
        return r228363;
}

double f(double x, double y, double z, double t) {
        double r228364 = y;
        double r228365 = 5.0;
        double r228366 = r228364 * r228365;
        double r228367 = 2.0;
        double r228368 = z;
        double r228369 = r228364 + r228368;
        double r228370 = r228367 * r228369;
        double r228371 = t;
        double r228372 = r228370 + r228371;
        double r228373 = x;
        double r228374 = r228372 * r228373;
        double r228375 = r228366 + r228374;
        return r228375;
}

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