Average Error: 0 → 0
Time: 28.7s
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 r5041565 = x;
        double r5041566 = r5041565 + r5041565;
        double r5041567 = r5041566 + r5041565;
        double r5041568 = r5041567 + r5041565;
        double r5041569 = r5041568 + r5041565;
        return r5041569;
}

double f(double x) {
        double r5041570 = 5.0;
        double r5041571 = x;
        double r5041572 = r5041570 * r5041571;
        return r5041572;
}

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