Learn R Programming

cmna (version 1.0.0)

nthroot: The n-th root formula

Description

Find the n-th root of real numbers

Usage

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

Other algebra: bilinear, cubicspline, division, fibonacci, horner, isPrime, linterp, polyinterp, pwiselinterp, quadratic

Examples

Run this code
# NOT RUN {
nthroot(100, 2)
nthroot(65536, 4)
nthroot(1000, 3)

# }

Run the code above in your browser using DataLab