Average Error: 0.1 → 0.1
Time: 25.8s
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[y \cdot 5 + \left(2 \cdot \left(y + z\right) + t\right) \cdot x\]
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
y \cdot 5 + \left(2 \cdot \left(y + z\right) + t\right) \cdot x
double f(double x, double y, double z, double t) {
        double r147151 = x;
        double r147152 = y;
        double r147153 = z;
        double r147154 = r147152 + r147153;
        double r147155 = r147154 + r147153;
        double r147156 = r147155 + r147152;
        double r147157 = t;
        double r147158 = r147156 + r147157;
        double r147159 = r147151 * r147158;
        double r147160 = 5.0;
        double r147161 = r147152 * r147160;
        double r147162 = r147159 + r147161;
        return r147162;
}

double f(double x, double y, double z, double t) {
        double r147163 = y;
        double r147164 = 5.0;
        double r147165 = r147163 * r147164;
        double r147166 = 2.0;
        double r147167 = z;
        double r147168 = r147163 + r147167;
        double r147169 = r147166 * r147168;
        double r147170 = t;
        double r147171 = r147169 + r147170;
        double r147172 = x;
        double r147173 = r147171 * r147172;
        double r147174 = r147165 + r147173;
        return r147174;
}

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. Simplified0.1

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

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

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