Average Error: 0.1 → 0.1
Time: 6.9s
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[x \cdot \left(\left(y + z\right) + z\right) + \left(y \cdot 5 + x \cdot \left(y + t\right)\right)\]
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
x \cdot \left(\left(y + z\right) + z\right) + \left(y \cdot 5 + x \cdot \left(y + t\right)\right)
double f(double x, double y, double z, double t) {
        double r151726 = x;
        double r151727 = y;
        double r151728 = z;
        double r151729 = r151727 + r151728;
        double r151730 = r151729 + r151728;
        double r151731 = r151730 + r151727;
        double r151732 = t;
        double r151733 = r151731 + r151732;
        double r151734 = r151726 * r151733;
        double r151735 = 5.0;
        double r151736 = r151727 * r151735;
        double r151737 = r151734 + r151736;
        return r151737;
}

double f(double x, double y, double z, double t) {
        double r151738 = x;
        double r151739 = y;
        double r151740 = z;
        double r151741 = r151739 + r151740;
        double r151742 = r151741 + r151740;
        double r151743 = r151738 * r151742;
        double r151744 = 5.0;
        double r151745 = r151739 * r151744;
        double r151746 = t;
        double r151747 = r151739 + r151746;
        double r151748 = r151738 * r151747;
        double r151749 = r151745 + r151748;
        double r151750 = r151743 + r151749;
        return r151750;
}

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. Applied associate-+l+0.1

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

    \[\leadsto x \cdot \left(\left(\left(y + z\right) + z\right) + y\right) + \color{blue}{\left(t \cdot x + y \cdot 5\right)}\]
  6. Using strategy rm
  7. Applied distribute-lft-in0.1

    \[\leadsto \color{blue}{\left(x \cdot \left(\left(y + z\right) + z\right) + x \cdot y\right)} + \left(t \cdot x + y \cdot 5\right)\]
  8. Applied associate-+l+0.1

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

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

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

Reproduce

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