root function

double root(
  1. num base,
  2. num factor
)

Implementation

double root(num base, num factor) =>
    (math.pow(base, 1 / factor) * 1000000000).round() / 1000000000;