Skip to content

Commit eb35d26

Browse files
committed
expunge is_commutative from plural
1 parent 209ae4c commit eb35d26

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

src/sage/rings/polynomial/plural.pyx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ TESTS::
9999
sage: TestSuite(P).run()
100100
sage: loads(dumps(P)) is P
101101
True
102+
103+
sage: A.<x,y,z> = FreeAlgebra(QQ, 3)
104+
sage: P = A.g_algebra(relations={y*x:-x*y}, order = 'lex')
105+
sage: P.is_commutative()
106+
False
107+
108+
sage: R.<x,y,z> = FreeAlgebra(QQ, 3)
109+
sage: P = R.g_algebra(relations={},order='lex')
110+
sage: P.is_commutative()
111+
True
112+
102113
"""
103114
from cysignals.memory cimport sig_malloc, sig_free
104115

@@ -676,22 +687,7 @@ cdef class NCPolynomialRing_plural(Ring):
676687
"""
677688
return self._term_order
678689

679-
def is_commutative(self):
680-
"""
681-
Return ``False``.
682-
683-
.. TODO:: Provide a mathematically correct answer.
684-
685-
EXAMPLES::
686-
687-
sage: A.<x,y,z> = FreeAlgebra(QQ, 3)
688-
sage: P = A.g_algebra(relations={y*x:-x*y}, order = 'lex')
689-
sage: P.is_commutative()
690-
False
691-
"""
692-
return False
693-
694-
def is_field(self, *args, **kwargs):
690+
def is_field(self, *args, **kwargs) -> bool:
695691
"""
696692
Return ``False``.
697693

0 commit comments

Comments
 (0)