Average Error: 0.1 → 0.1
Time: 6.5s
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[\left(\left(2 \cdot x\right) \cdot \left(y + z\right) + x \cdot t\right) + y \cdot 5\]
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
\left(\left(2 \cdot x\right) \cdot \left(y + z\right) + x \cdot t\right) + y \cdot 5
double f(double x, double y, double z, double t) {
        double r159426 = x;
        double r159427 = y;
        double r159428 = z;
        double r159429 = r159427 + r159428;
        double r159430 = r159429 + r159428;
        double r159431 = r159430 + r159427;
        double r159432 = t;
        double r159433 = r159431 + r159432;
        double r159434 = r159426 * r159433;
        double r159435 = 5.0;
        double r159436 = r159427 * r159435;
        double r159437 = r159434 + r159436;
        return r159437;
}

double f(double x, double y, double z, double t) {
        double r159438 = 2.0;
        double r159439 = x;
        double r159440 = r159438 * r159439;
        double r159441 = y;
        double r159442 = z;
        double r159443 = r159441 + r159442;
        double r159444 = r159440 * r159443;
        double r159445 = t;
        double r159446 = r159439 * r159445;
        double r159447 = r159444 + r159446;
        double r159448 = 5.0;
        double r159449 = r159441 * r159448;
        double r159450 = r159447 + r159449;
        return r159450;
}

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. Using strategy rm
  3. Applied distribute-lft-in0.1

    \[\leadsto \color{blue}{\left(x \cdot \left(\left(\left(y + z\right) + z\right) + y\right) + x \cdot t\right)} + y \cdot 5\]
  4. Simplified0.1

    \[\leadsto \left(\color{blue}{\left(2 \cdot x\right) \cdot \left(y + z\right)} + x \cdot t\right) + y \cdot 5\]
  5. Final simplification0.1

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

Reproduce

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