This is documentation for an old release of NumPy (version 1.3.). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
numpy.reciprocal
-
numpy.reciprocal(x[, out])
Return element-wise reciprocal.
Parameters: | x : array_like
Input value.
|
Returns: | y : ndarray
Return value.
|
Examples
>>> reciprocal(2.)
0.5
>>> reciprocal([1, 2., 3.33])
array([ 1. , 0.5 , 0.3003003])