I want to be able to get the polnyomial factors of a polynomial but I'm not sure what is the best way to do this in giac or giacpy. So for instance I have a polynomial say 2/3*(x+y*x+3) and I use the factors command I get
In my actual codes this polynomials could be really long and in this particular case, the only interesting part is the third entry in the list i.e. x*y+x+3. What is the best way to get this? Can I inquire for type? I can ask for the degree, but for degree one should give the proper indeterminates (it could be a polynomial over x or y or z or ..etc.) and probably this is not the best way to get the non-constant factors.