nthroot: The n-th root formula

Description Usage Arguments Details Value See Also Examples

View source: R/nthroot.R

Description

Find the n-th root of real numbers

Usage

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

Arguments

a

a positive real number

n

n

tol

the permitted error tolerance

Details

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

Value

the root

See Also

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

Examples

1
2
3
nthroot(100, 2)
nthroot(65536, 4)
nthroot(1000, 3)

cmna documentation built on July 14, 2021, 5:11 p.m.