nroot: Compute bth root of a This is a so-called Vectorized...

Description Usage

View source: R/aaa.R

Description

This does *not* handle the case where b is the inverse of an integer (e.g. nthroot(-1,1/3) ==? (-1)^3), since in general you cannot count on 1/(1/int) being an integer. If on the other hand you want the complex principal value of the nth root, you can use (a+0i)^(1/b).

Usage

1
nroot(a, b)

ifrit98/museR documentation built on May 25, 2020, 6:12 a.m.