Question: List of all (monic) factors of given polynomial

Dear all,

I was wondering if there is any simple way in maple which could do the following:

given a polynomial (over the reals), return a list or set with all its (maybe monic) factors.

That's not exacly what the 'factor' command does.

 

As an example, given the polynomial (x+1)*(x+2)^2, I would like to get something like:

{1, x+1, x+2, (x+2)^2, (x+1)*(x+2), (x+1)*(x+2)^2}

 

Do you know if this is possible in a somewhat straightforward way?

 

Many thanks in advance for your time..

Please Wait...