answered 2025-02-27 19:57:52 +0200
Term order is not defined for single-variable polynomial rings, just for multivariable rings:
sage: R2 = PolynomialRing(QQ, names=['x_1', 'x_2'], order='lex') sage: R2.term_order() Lexicographic term order