Average Error: 0 → 0
Time: 716.0ms
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 r5734653 = x;
        double r5734654 = r5734653 + r5734653;
        double r5734655 = r5734654 + r5734653;
        double r5734656 = r5734655 + r5734653;
        double r5734657 = r5734656 + r5734653;
        return r5734657;
}

double f(double x) {
        double r5734658 = 5.0;
        double r5734659 = x;
        double r5734660 = r5734658 * r5734659;
        return r5734660;
}

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