Average Error: 0.0 → 0.0
Time: 9.8s
Precision: 64
\[{x}^{2} - x\]
\[{x}^{2} - x\]
{x}^{2} - x
{x}^{2} - x
double f(double x) {
        double r1467819 = x;
        double r1467820 = 2.0;
        double r1467821 = pow(r1467819, r1467820);
        double r1467822 = r1467821 - r1467819;
        return r1467822;
}

double f(double x) {
        double r1467823 = x;
        double r1467824 = 2.0;
        double r1467825 = pow(r1467823, r1467824);
        double r1467826 = r1467825 - r1467823;
        return r1467826;
}

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}^{2} - x\]
  2. Final simplification0.0

    \[\leadsto {x}^{2} - x\]

Reproduce

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