### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Polynomials »

# numpy.polydiv

`numpy.``polydiv`(u, v)

  Returns the quotient and remainder of polynomial division.

  The input arrays specify the polynomial terms in turn with a length equal to the polynomial degree plus 1.

  Parameters: | u : {array_like, poly1d} Dividend polynomial. v : {array_like, poly1d} Divisor polynomial.
  Returns: | q : ndarray Polynomial terms of quotient. r : ndarray Remainder of polynomial division.

  See also

  `poly`, `polyadd`, `polyder`, `polydiv`, `polyfit`, `polyint`, `polymul`, `polysub`, `polyval`

  Examples

      >>> x = np.array([3.0, 5.0, 2.0])
      >>> y = np.array([2.0, 1.0])
      >>> np.polydiv(x, y)
      >>> (array([ 1.5 ,  1.75]), array([ 0.25]))

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Polynomials »