Average Error: 58.6 → 58.6
Time: 22.0s
Precision: binary64
\[{\left({x}^{k}\right)}^{\left(\frac{1}{k}\right)}\]
\[{\left({x}^{k}\right)}^{\left(\frac{1}{k}\right)}\]
{\left({x}^{k}\right)}^{\left(\frac{1}{k}\right)}
{\left({x}^{k}\right)}^{\left(\frac{1}{k}\right)}
double code(double x, double k) {
	return ((double) pow(((double) pow(x, k)), ((double) (1.0 / k))));
}
double code(double x, double k) {
	return ((double) pow(((double) pow(x, k)), ((double) (1.0 / k))));
}

Error

Bits error versus x

Bits error versus k

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.6

    \[{\left({x}^{k}\right)}^{\left(\frac{1}{k}\right)}\]
  2. Final simplification58.6

    \[\leadsto {\left({x}^{k}\right)}^{\left(\frac{1}{k}\right)}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x k)
  :name "(pow (pow x k) (/ 1 k))"
  :precision binary64
  (pow (pow x k) (/ 1.0 k)))