numpy.power()
numpy.power
-
numpy.power(x1, x2[, out]) = <ufunc 'power'>
-
First array elements raised to powers from second array, element-wise.
Raise each base in
x1
to the positionally-corresponding power inx2
.x1
andx2
must be broadcastable to the same shape. Note that an integer type raised to a negative integer power will raise a ValueError.Parameters: x1 : array_like
The bases.
x2 : array_like
The exponents.
Returns: y : ndarray
The