What exactly does FactorTermsList
do? The documentation is not complete in that it only gives examples, not a precise definition:
- What exactly is the "overall numerical factor of a polynomial" for Mathematica? From a description on mathworld that I found, I understand that this is supposed to be the content of the polynomial, but how exactly does Mathematica define that when it knows only the polynomial, not the underlying ring of the coefficients? Does it just take the ring generated by the coefficients?
- What the is second output? Just any arbitrary factor that does not depend on the variables? How is it determined and how does it relate to the content of the polynomial?
And then there is the following strange example:
FactorTermsList[(3 x^4)/(2 Sqrt[Pi]) - (9 x^2 y^2)/(2 Sqrt[Pi]) + (9 y^4)/( 16 Sqrt[Pi]) - (9 x^2 z^2)/(2 Sqrt[Pi]) + (9 y^2 z^2)/(8 Sqrt[Pi]) + (9 z^4)/(16 Sqrt[Pi]),{x,y,z}]
which produces the output
{3/16, (8 x^4)/Sqrt[Pi] - (24 x^2 y^2)/Sqrt[Pi] + (3 y^4)/Sqrt[Pi] - (24 x^2 z^2)/Sqrt[Pi] + (6 y^2 z^2)/Sqrt[Pi] + (3 z^4)/Sqrt[Pi]}
- Why is this a list with only two entries? From the documentation I understand that
FactorTermsList
is supposed to output a list with five entries, because I want the input to be considered as a polynomial in three variables. And that's exactly what it does for most other polynomial inputs with three variables.
For example
FactorTermsList[4x+6xy+10xyz,{x,y,z}]
produces
{2, 1, 1, 2 + 3 y + 5 y z, x}
which is still weird (why do the third to fifth entry in the list occur in the order in which they do?) but at least it's a list with five entries.