Average Error: 0 → 0
Time: 2.3m
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 r6257550 = x;
        double r6257551 = r6257550 + r6257550;
        double r6257552 = r6257551 + r6257550;
        double r6257553 = r6257552 + r6257550;
        double r6257554 = r6257553 + r6257550;
        return r6257554;
}

double f(double x) {
        double r6257555 = 5.0;
        double r6257556 = x;
        double r6257557 = r6257555 * r6257556;
        return r6257557;
}

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}{x \cdot 5}\]
  3. Final simplification0

    \[\leadsto 5 \cdot x\]

Reproduce

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