Average Error: 0.1 → 0.1
Time: 22.3s
Precision: 64
\[x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5\]
\[y \cdot 5 + \left(t \cdot x + \left(\left(y + y\right) + \left(z + z\right)\right) \cdot x\right)\]
x \cdot \left(\left(\left(\left(y + z\right) + z\right) + y\right) + t\right) + y \cdot 5
y \cdot 5 + \left(t \cdot x + \left(\left(y + y\right) + \left(z + z\right)\right) \cdot x\right)
double f(double x, double y, double z, double t) {
        double r182156 = x;
        double r182157 = y;
        double r182158 = z;
        double r182159 = r182157 + r182158;
        double r182160 = r182159 + r182158;
        double r182161 = r182160 + r182157;
        double r182162 = t;
        double r182163 = r182161 + r182162;
        double r182164 = r182156 * r182163;
        double r182165 = 5.0;
        double r182166 = r182157 * r182165;
        double r182167 = r182164 + r182166;
        return r182167;
}

double f(double x, double y, double z, double t) {
        double r182168 = y;
        double r182169 = 5.0;
        double r182170 = r182168 * r182169;
        double r182171 = t;
        double r182172 = x;
        double r182173 = r182171 * r182172;
        double r182174 = r182168 + r182168;
        double r182175 = z;
        double r182176 = r182175 + r182175;
        double r182177 = r182174 + r182176;
        double r182178 = r182177 * r182172;
        double r182179 = r182173 + r182178;
        double r182180 = r182170 + r182179;
        return r182180;
}

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(\left(y + y\right) + \left(z + z\right)\right) \cdot x} + x \cdot t\right) + y \cdot 5\]
  5. Final simplification0.1

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

Reproduce

herbie shell --seed 2019179 
(FPCore (x y z t)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, B"
  (+ (* x (+ (+ (+ (+ y z) z) y) t)) (* y 5.0)))