Function sequant::iroot

Function Documentation

inline intmax_t sequant::iroot(const intmax_t &n, unsigned k)
Parameters:
  • n – [in] a non-negative integer

  • k – [in] the order of the root, at least 1

Returns:

the floor of the k -th root of n