Average Error: 0.1 → 0.1
Time: 5.7s
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(z + y\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(z + y\right) + t\right) \cdot x
double f(double x, double y, double z, double t) {
        double r157270 = x;
        double r157271 = y;
        double r157272 = z;
        double r157273 = r157271 + r157272;
        double r157274 = r157273 + r157272;
        double r157275 = r157274 + r157271;
        double r157276 = t;
        double r157277 = r157275 + r157276;
        double r157278 = r157270 * r157277;
        double r157279 = 5.0;
        double r157280 = r157271 * r157279;
        double r157281 = r157278 + r157280;
        return r157281;
}

double f(double x, double y, double z, double t) {
        double r157282 = y;
        double r157283 = 5.0;
        double r157284 = r157282 * r157283;
        double r157285 = 2.0;
        double r157286 = z;
        double r157287 = r157286 + r157282;
        double r157288 = r157285 * r157287;
        double r157289 = t;
        double r157290 = r157288 + r157289;
        double r157291 = x;
        double r157292 = r157290 * r157291;
        double r157293 = r157284 + r157292;
        return r157293;
}

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

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

    \[\leadsto \color{blue}{{x}^{1}} \cdot {\left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right)}^{1} + y \cdot 5\]
  5. Applied pow-prod-down0.1

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

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

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

Reproduce

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