This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).
Returns element-wise remainder of division.
Computes x1 - floor(x1/x2)*x2.
Parameters: | x1 : array_like
x2 : array_like
|
---|---|
Returns: | y : ndarray
|
Notes
Returns 0 when x2 is 0.
Examples
>>> np.remainder([4,7],[2,3])
array([0, 1])