diff --git a/src/sage/rings/polynomial/plural.pyx b/src/sage/rings/polynomial/plural.pyx index 35de7feefe5..adf127b5841 100644 --- a/src/sage/rings/polynomial/plural.pyx +++ b/src/sage/rings/polynomial/plural.pyx @@ -99,6 +99,16 @@ TESTS:: sage: TestSuite(P).run() sage: loads(dumps(P)) is P True + + sage: A. = FreeAlgebra(QQ, 3) + sage: P = A.g_algebra(relations={y*x:-x*y}, order = 'lex') + sage: P.is_commutative() + False + + sage: R. = FreeAlgebra(QQ, 3) + sage: P = R.g_algebra(relations={}, order='lex') + sage: P.is_commutative() + True """ from cysignals.memory cimport sig_malloc, sig_free @@ -676,22 +686,7 @@ cdef class NCPolynomialRing_plural(Ring): """ return self._term_order - def is_commutative(self): - """ - Return ``False``. - - .. TODO:: Provide a mathematically correct answer. - - EXAMPLES:: - - sage: A. = FreeAlgebra(QQ, 3) - sage: P = A.g_algebra(relations={y*x:-x*y}, order = 'lex') - sage: P.is_commutative() - False - """ - return False - - def is_field(self, *args, **kwargs): + def is_field(self, *args, **kwargs) -> bool: """ Return ``False``.