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.
Add
1
to the definition ofR
to make it multivariateR = PolynomialRing(QQ, 1, names=['x_1'], order='lex')
with full support for term orders.