Average Error: 0 → 0
Time: 28.6s
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 r5509962 = x;
        double r5509963 = r5509962 + r5509962;
        double r5509964 = r5509963 + r5509962;
        double r5509965 = r5509964 + r5509962;
        double r5509966 = r5509965 + r5509962;
        return r5509966;
}

double f(double x) {
        double r5509967 = 5.0;
        double r5509968 = x;
        double r5509969 = r5509967 * r5509968;
        return r5509969;
}

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