Find the n-th root of real numbers

nthroot(a, n, tol = 1/1000)

Arguments

a

a positive real number

n

n

tol

the permitted error tolerance

Value

the root

Details

The nthroot function finds the nth root of a via an iterative process.

See also

Examples

nthroot(100, 2)
#> [1] 10
nthroot(65536, 4)
#> [1] 16
nthroot(1000, 3)
#> [1] 10