Average Error: 0 → 0
Time: 45.0s
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 r4250749 = x;
        double r4250750 = r4250749 + r4250749;
        double r4250751 = r4250750 + r4250749;
        double r4250752 = r4250751 + r4250749;
        double r4250753 = r4250752 + r4250749;
        return r4250753;
}

double f(double x) {
        double r4250754 = 5.0;
        double r4250755 = x;
        double r4250756 = r4250754 * r4250755;
        return r4250756;
}

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 2019168 
(FPCore (x)
  :name "Main:i from "
  (+ (+ (+ (+ x x) x) x) x))