Average Error: 29.2 → 0
Time: 1.0s
Precision: 64
\[\frac{x \cdot x}{x}\]
\[x\]
\frac{x \cdot x}{x}
x
double f(double x) {
        double r54178184 = x;
        double r54178185 = r54178184 * r54178184;
        double r54178186 = r54178185 / r54178184;
        return r54178186;
}

double f(double x) {
        double r54178187 = x;
        return r54178187;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.2

    \[\frac{x \cdot x}{x}\]
  2. Simplified0

    \[\leadsto \color{blue}{x}\]
  3. Final simplification0

    \[\leadsto x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "x * x / x"
  (/ (* x x) x))