scipy.special.cbrt#

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

x 的元素級立方根。

參數:
xarray_like

x 必須包含實數。

outndarray, optional

函數值的選用輸出陣列

返回值:
scalar 或 ndarray

x 中每個值的立方根。

範例

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