Average Error: 29.6 → 29.6
Time: 2.2s
Precision: binary64
\[{2}^{x} - {x}^{x}\]
\[{2}^{x} - {x}^{x}\]
{2}^{x} - {x}^{x}
{2}^{x} - {x}^{x}
double code(double x) {
	return ((double) (((double) pow(2.0, x)) - ((double) pow(x, x))));
}
double code(double x) {
	return ((double) (((double) pow(2.0, x)) - ((double) pow(x, x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.6

    \[{2}^{x} - {x}^{x}\]
  2. Final simplification29.6

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

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(- (pow 2.0 x) (pow x x))"
  :precision binary64
  (- (pow 2.0 x) (pow x x)))