Average Error: 0 → 0
Time: 28.3s
Precision: 64
\[\left(\left(\left(x + x\right) + x\right) + x\right) + x\]
\[5 \cdot x\]
\left(\left(\left(x + x\right) + x\right) + x\right) + x
5 \cdot x
double f(double x) {
        double r4568750 = x;
        double r4568751 = r4568750 + r4568750;
        double r4568752 = r4568751 + r4568750;
        double r4568753 = r4568752 + r4568750;
        double r4568754 = r4568753 + r4568750;
        return r4568754;
}

double f(double x) {
        double r4568755 = 5.0;
        double r4568756 = x;
        double r4568757 = r4568755 * r4568756;
        return r4568757;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\left(\left(\left(x + x\right) + x\right) + x\right) + x\]
  2. Simplified0

    \[\leadsto \color{blue}{5 \cdot x}\]
  3. Final simplification0

    \[\leadsto 5 \cdot x\]

Reproduce

herbie shell --seed 2019172 
(FPCore (x)
  :name "Main:i from "
  (+ (+ (+ (+ x x) x) x) x))