First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to print variables order of a polynomial ring?

Hello,

I've a generic multivariate polynomial ring, for which I need to print the order of its variables, e.g., lex, degrevlex, etc. The method terms_order is missing for PolynomialRing type polynomials. Please suggest an alternative. Here's a sample code that doesn't work:

R = PolynomialRing(QQ, names=['x_1'], order='lex') R.term_order() # This line fails with "KeyError: 'term_order'"!

Thank you in advance for your help.

Regards, Alexander.

How to print variables order of a polynomial ring?

Hello,

I've a generic multivariate polynomial ring, for which I need to print the order of its variables, e.g., lex, degrevlex, etc. The method terms_order is missing for PolynomialRing type polynomials. Please suggest an alternative. Here's a sample code that doesn't work:

R = PolynomialRing(QQ, names=['x_1'], order='lex')
R.term_order()   # This line fails with "KeyError: 'term_order'"!

'term_order'"!

Thank you in advance for your help.

Regards, Alexander.

click to hide/show revision 3
retagged

updated 0 years ago

FrédéricC gravatar image

How to print variables order of a polynomial ring?

Hello,

I've a generic multivariate polynomial ring, for which I need to print the order of its variables, e.g., lex, degrevlex, etc. The method terms_order is missing for PolynomialRing type polynomials. Please suggest an alternative. Here's a sample code that doesn't work:

R = PolynomialRing(QQ, names=['x_1'], order='lex')
R.term_order()   # This line fails with "KeyError: 'term_order'"!

Thank you in advance for your help.

Regards, Alexander.