Back to Numerical Arrays (NumPy)
np.gcd
Returns the greatest common divisor of |x1| and |x2|.
Syntax
np.gcd(x1, x2)
Description
Returns the greatest common divisor of |x1| and |x2|. Input arrays must be integers.
Parameters
| Name | Description |
|---|---|
| x1 | - First array of integers |
| x2 | - Second array of integers |
Returns
NDArray