Anonymous user
Integer roots: Difference between revisions
m
no edit summary
m (pretty Nth) |
mNo edit summary |
||
Line 2:
'''Integer roots'''
The task is to write a program that computes an approximation to the principal N<sup>th</sup> root of X as the largest integer less than or equal to R for which <math>R^N=X</math>. N is a positive integer. X is a non-negative integer. R is a non-negative real number.
Example: With N=3 and X=8 you would calculate the number 2 because 2^3=8.
|