Previous Up Next

11.1.20  List of factors

The factors command provides the factors of a polynomial as a list.

Examples

factors(x^2+2*x+1)
     
⎡
⎣
x+1,2⎤
⎦
          
factors(x^4-2*x^2+1)
     
⎡
⎣
x−1,2,x+1,2⎤
⎦
          
factors([x^3-2*x^2+1,x^2-x])
     
⎡
⎢
⎣
x−11x2−x−11
x1x−11
⎤
⎥
⎦
          
factors([x^2,x^2-1])
     
⎡
⎣
⎡
⎣
x,2⎤
⎦
,⎡
⎣
x−1,1,x+1,1⎤
⎦
⎤
⎦
          

Previous Up Next