nvector._core.nthroot

nthroot(x, n)[source][source]

Return the n’th root of x to machine precision

Parameters x, n

Examples

>>> import numpy as np
>>> import nvector as nv
>>> np.allclose(nv.nthroot(27.0, 3), 3.0)
True