Average Error: 0.0 → 0.0
Time: 19.5s
Precision: 64
\[x + x \cdot x\]
\[x \cdot x + x\]
x + x \cdot x
x \cdot x + x
double f(double x) {
        double r4980894 = x;
        double r4980895 = r4980894 * r4980894;
        double r4980896 = r4980894 + r4980895;
        return r4980896;
}

double f(double x) {
        double r4980897 = x;
        double r4980898 = r4980897 * r4980897;
        double r4980899 = r4980898 + r4980897;
        return r4980899;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x + x \cdot x\]
  2. Final simplification0.0

    \[\leadsto x \cdot x + x\]

Reproduce

herbie shell --seed 2019168 
(FPCore (x)
  :name "Main:bigenough1 from B"
  (+ x (* x x)))