Average Error: 0 → 0
Time: 750.0ms
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 r101630 = x;
        double r101631 = r101630 + r101630;
        double r101632 = r101631 + r101630;
        double r101633 = r101632 + r101630;
        double r101634 = r101633 + r101630;
        return r101634;
}

double f(double x) {
        double r101635 = x;
        double r101636 = 5.0;
        double r101637 = r101635 * r101636;
        return r101637;
}

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

Reproduce

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