On this page
numpy.cbrt
numpy.cbrt(x[, out]) = <ufunc 'cbrt'>
-
Return the cube-root of an array, element-wise.
New in version 1.10.0.
Parameters: x : array_like
The values whose cube-roots are required.
out : ndarray, optional
Alternate array object in which to put the result; if provided, it must have the same shape as
x
Returns: y : ndarray
An array of the same shape as
x
, containing the cube cube-root of each element inx
. Ifout
was provided,y
is a reference to it.Examples
>>> np.cbrt([1,8,27]) array([ 1., 2., 3.])
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.12.0/reference/generated/numpy.cbrt.html