Average Error: 0.1 → 0.1
Time: 10.4s
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 r190321 = x;
        double r190322 = y;
        double r190323 = z;
        double r190324 = r190322 + r190323;
        double r190325 = r190324 + r190323;
        double r190326 = r190325 + r190322;
        double r190327 = t;
        double r190328 = r190326 + r190327;
        double r190329 = r190321 * r190328;
        double r190330 = 5.0;
        double r190331 = r190322 * r190330;
        double r190332 = r190329 + r190331;
        return r190332;
}

double f(double x, double y, double z, double t) {
        double r190333 = y;
        double r190334 = 5.0;
        double r190335 = r190333 * r190334;
        double r190336 = 2.0;
        double r190337 = z;
        double r190338 = r190333 + r190337;
        double r190339 = r190336 * r190338;
        double r190340 = t;
        double r190341 = r190339 + r190340;
        double r190342 = x;
        double r190343 = r190341 * r190342;
        double r190344 = r190335 + r190343;
        return r190344;
}

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