This is documentation for an old release of SciPy (version 1.8.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.special.cbrt#

scipy.special.cbrt(x) = <ufunc 'cbrt'>#

Element-wise cube root of x.

Parameters
xarray_like

x must contain real numbers.

Returns
float

The cube root of each value in x.

Examples

>>> from scipy.special import cbrt
>>> cbrt(8)
2.0
>>> cbrt([-8, -3, 0.125, 1.331])
array([-2.        , -1.44224957,  0.5       ,  1.1       ])