Average Error: 0.1 → 0.1
Time: 10.8s
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(z + y\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(z + y\right) + x \cdot t\right) + y \cdot 5
double f(double x, double y, double z, double t) {
        double r174589 = x;
        double r174590 = y;
        double r174591 = z;
        double r174592 = r174590 + r174591;
        double r174593 = r174592 + r174591;
        double r174594 = r174593 + r174590;
        double r174595 = t;
        double r174596 = r174594 + r174595;
        double r174597 = r174589 * r174596;
        double r174598 = 5.0;
        double r174599 = r174590 * r174598;
        double r174600 = r174597 + r174599;
        return r174600;
}

double f(double x, double y, double z, double t) {
        double r174601 = 2.0;
        double r174602 = x;
        double r174603 = r174601 * r174602;
        double r174604 = z;
        double r174605 = y;
        double r174606 = r174604 + r174605;
        double r174607 = r174603 * r174606;
        double r174608 = t;
        double r174609 = r174602 * r174608;
        double r174610 = r174607 + r174609;
        double r174611 = 5.0;
        double r174612 = r174605 * r174611;
        double r174613 = r174610 + r174612;
        return r174613;
}

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(z + y\right)} + x \cdot t\right) + y \cdot 5\]
  5. Final simplification0.1

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

Reproduce

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