SciPy

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 in x. If out was provided, y is a reference to it.

Examples

>>> np.cbrt([1,8,27])
array([ 1.,  2.,  3.])

Previous topic

numpy.sqrt

Next topic

numpy.square