# The divisors of a polynomial: divis

### 5.28.1 The divisors of a polynomial: divis

The divis command finds the divisors of a polynomial.

- divis takes one argument:
  P, a polynomial or a list of polynomials.
- divis(P) and returns the list of the divisors of P.

#### Examples.

- Input:
  divis(x^4-1)
  Output:

  | ⎡ ⎣

  1,x−1,x+1, | ⎛ ⎝ | x−1 | ⎞ ⎠ |  | ⎛ ⎝ | x+1 | ⎞ ⎠ | ,x2+1, | ⎛ ⎝ | x−1 | ⎞ ⎠ | ⎛ ⎝ | x2+1 | ⎞ ⎠ | ,

  ⎛ ⎝ | x+1 | ⎞ ⎠ | ⎛ ⎝ | x2+1 | ⎞ ⎠ | , | ⎛ ⎝ | x−1 | ⎞ ⎠ |  | ⎛ ⎝ | x+1 | ⎞ ⎠ | ⎛ ⎝ | x2+1 | ⎞ ⎠ | ⎤ ⎦

- Input:
  divis([x^2,x^2-1])
  Output:

  | ⎡ ⎣ | ⎡ ⎣ | 1,x,x2 | ⎤ ⎦ | , | ⎡ ⎣ | 1,x−1,x+1, | ⎛ ⎝ | x−1 | ⎞ ⎠ | ⎛ ⎝ | x+1 | ⎞ ⎠ | ⎤ ⎦ | ⎤ ⎦