Average Error: 0.0 → 0.0
Time: 15.7s
Precision: 64
\[{x}^{2} - {x}^{x}\]
\[{x}^{2} - {x}^{x}\]
{x}^{2} - {x}^{x}
{x}^{2} - {x}^{x}
double f(double x) {
        double r11353860 = x;
        double r11353861 = 2.0;
        double r11353862 = pow(r11353860, r11353861);
        double r11353863 = pow(r11353860, r11353860);
        double r11353864 = r11353862 - r11353863;
        return r11353864;
}

double f(double x) {
        double r11353865 = x;
        double r11353866 = 2.0;
        double r11353867 = pow(r11353865, r11353866);
        double r11353868 = pow(r11353865, r11353865);
        double r11353869 = r11353867 - r11353868;
        return r11353869;
}

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

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

Reproduce

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