Average Error: 0 → 0
Time: 31.3s
Precision: 64
\[\left(\left(\left(x + x\right) + x\right) + x\right) + x\]
\[x \cdot 5\]
\left(\left(\left(x + x\right) + x\right) + x\right) + x
x \cdot 5
double f(double x) {
        double r5521578 = x;
        double r5521579 = r5521578 + r5521578;
        double r5521580 = r5521579 + r5521578;
        double r5521581 = r5521580 + r5521578;
        double r5521582 = r5521581 + r5521578;
        return r5521582;
}

double f(double x) {
        double r5521583 = x;
        double r5521584 = 5.0;
        double r5521585 = r5521583 * r5521584;
        return r5521585;
}

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 x \cdot 5\]

Reproduce

herbie shell --seed 2019200 +o rules:numerics
(FPCore (x)
  :name "Main:i from "
  (+ (+ (+ (+ x x) x) x) x))