Average Error: 0 → 0
Time: 2.0s
Precision: 64
\[{x}^{2}\]
\[x \cdot x\]
{x}^{2}
x \cdot x
double f(double x) {
        double r36929870 = x;
        double r36929871 = 2.0;
        double r36929872 = pow(r36929870, r36929871);
        return r36929872;
}

double f(double x) {
        double r36929873 = x;
        double r36929874 = r36929873 * r36929873;
        return r36929874;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[{x}^{2}\]
  2. Simplified0

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

    \[\leadsto x \cdot x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "pow(x, 2)"
  (pow x 2))