Average Error: 0.1 → 0.1
Time: 7.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 r153979 = x;
        double r153980 = y;
        double r153981 = z;
        double r153982 = r153980 + r153981;
        double r153983 = r153982 + r153981;
        double r153984 = r153983 + r153980;
        double r153985 = t;
        double r153986 = r153984 + r153985;
        double r153987 = r153979 * r153986;
        double r153988 = 5.0;
        double r153989 = r153980 * r153988;
        double r153990 = r153987 + r153989;
        return r153990;
}

double f(double x, double y, double z, double t) {
        double r153991 = 2.0;
        double r153992 = x;
        double r153993 = r153991 * r153992;
        double r153994 = y;
        double r153995 = z;
        double r153996 = r153994 + r153995;
        double r153997 = r153993 * r153996;
        double r153998 = t;
        double r153999 = r153992 * r153998;
        double r154000 = r153997 + r153999;
        double r154001 = 5.0;
        double r154002 = r153994 * r154001;
        double r154003 = r154000 + r154002;
        return r154003;
}

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