Average Error: 0 → 0
Time: 28.4s
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 r6319563 = x;
        double r6319564 = r6319563 + r6319563;
        double r6319565 = r6319564 + r6319563;
        double r6319566 = r6319565 + r6319563;
        double r6319567 = r6319566 + r6319563;
        return r6319567;
}

double f(double x) {
        double r6319568 = 5.0;
        double r6319569 = x;
        double r6319570 = r6319568 * r6319569;
        return r6319570;
}

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