Read-only forum archive

Number of variables in one polynomial.

Number of variables in one polynomial.

IliaToli · Wed Mar 22, 2017 2:56 am

This might sound as a trivial question, but it is not. Is there a command to check the number of variables in a polynomial? The situation is this:

I can add to the system as many equations as I wish, infinite. The problem is, they become more and more cumbersome. On the other hand, after that I manage to calculate the Gröbner basis, I take the "smallest" polynomial, and see how far I am by counting its variables. For huge polynomials this is no easy task.

Re: Number of variables in one polynomial.

hannes · Wed Mar 22, 2017 10:59 am

Code:
size(variables(p));

see https://www.singular.uni-kl.de/Manual/4 ... ng_360.htm