Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

nth root of a number python

## How this will work is it takes the n to the power -1 root of num
## n to the power -1 is just 1 over n

def root(num, n):
  return a**(n**-1)

print(root(27, 3))
 
PREVIOUS NEXT
Tagged: #nth #root #number #python
ADD COMMENT
Topic
Name
2+7 =