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\]
\[\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 r234331 = x;
        double r234332 = y;
        double r234333 = z;
        double r234334 = r234332 + r234333;
        double r234335 = r234334 + r234333;
        double r234336 = r234335 + r234332;
        double r234337 = t;
        double r234338 = r234336 + r234337;
        double r234339 = r234331 * r234338;
        double r234340 = 5.0;
        double r234341 = r234332 * r234340;
        double r234342 = r234339 + r234341;
        return r234342;
}

double f(double x, double y, double z, double t) {
        double r234343 = 2.0;
        double r234344 = x;
        double r234345 = r234343 * r234344;
        double r234346 = y;
        double r234347 = z;
        double r234348 = r234346 + r234347;
        double r234349 = r234345 * r234348;
        double r234350 = t;
        double r234351 = r234344 * r234350;
        double r234352 = r234349 + r234351;
        double r234353 = 5.0;
        double r234354 = r234346 * r234353;
        double r234355 = r234352 + r234354;
        return r234355;
}

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