Average Error: 0.1 → 0.1
Time: 10.1s
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 r175886 = x;
        double r175887 = y;
        double r175888 = z;
        double r175889 = r175887 + r175888;
        double r175890 = r175889 + r175888;
        double r175891 = r175890 + r175887;
        double r175892 = t;
        double r175893 = r175891 + r175892;
        double r175894 = r175886 * r175893;
        double r175895 = 5.0;
        double r175896 = r175887 * r175895;
        double r175897 = r175894 + r175896;
        return r175897;
}

double f(double x, double y, double z, double t) {
        double r175898 = 2.0;
        double r175899 = x;
        double r175900 = r175898 * r175899;
        double r175901 = y;
        double r175902 = z;
        double r175903 = r175901 + r175902;
        double r175904 = r175900 * r175903;
        double r175905 = t;
        double r175906 = r175899 * r175905;
        double r175907 = r175904 + r175906;
        double r175908 = 5.0;
        double r175909 = r175901 * r175908;
        double r175910 = r175907 + r175909;
        return r175910;
}

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