11.2.1 Divisors of a polynomial
The
divis
command finds the divisors of a polynomial.
divis
takes
P
, a polynomial or a list of polynomials.
divis(
P
)
and returns the list of the divisors of
P
.
Examples
divis
(
x
^4-1)
⎡
⎣
1,
x
−1,
x
+1,
⎛
⎝
x
−1
⎞
⎠
⎛
⎝
x
+1
⎞
⎠
,
x
2
+1,
⎛
⎝
x
−1
⎞
⎠
⎛
⎝
x
2
+1
⎞
⎠
,
⎛
⎝
x
+1
⎞
⎠
⎛
⎝
x
2
+1
⎞
⎠
,
⎛
⎝
x
−1
⎞
⎠
⎛
⎝
x
+1
⎞
⎠
⎛
⎝
x
2
+1
⎞
⎠
⎤
⎦
divis
([
x
^2,
x
^2-1])
⎡
⎣
⎡
⎣
1,
x
,
x
2
⎤
⎦
,
⎡
⎣
1,
x
−1,
x
+1,
⎛
⎝
x
−1
⎞
⎠
⎛
⎝
x
+1
⎞
⎠
⎤
⎦
⎤
⎦