@@ -591,7 +591,7 @@ cdef class fmpq_mpoly(flint_mpoly):
591591 >>> from flint import Ordering
592592 >>> ctx = fmpq_mpoly_ctx.get_context(2, Ordering.lex, 'x')
593593 >>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
594- >>> f.keys ()
594+ >>> f.monoms ()
595595 [(1, 1), (1, 0), (0, 1), (0, 0)]
596596
597597 """
@@ -613,7 +613,7 @@ cdef class fmpq_mpoly(flint_mpoly):
613613 >>> from flint import Ordering
614614 >>> ctx = fmpq_mpoly_ctx.get_context(2, Ordering.lex, 'x')
615615 >>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
616- >>> f.values ()
616+ >>> f.coeffs ()
617617 [4, 2, 3, 1]
618618
619619 """
@@ -629,28 +629,28 @@ cdef class fmpq_mpoly(flint_mpoly):
629629
630630 return res
631631
632- def terms (self ):
633- """
634- Return the terms of this polynomial as a list of fmpq_mpolys.
632+ # def terms(self):
633+ # """
634+ # Return the terms of this polynomial as a list of fmpq_mpolys.
635635
636- >>> from flint import Ordering
637- >>> ctx = fmpq_mpoly_ctx.get_context(2, Ordering.lex, 'x')
638- >>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
639- >>> f.terms()
640- [4*x0*x1, 2*x0, 3*x1, 1]
636+ # >>> from flint import Ordering
637+ # >>> ctx = fmpq_mpoly_ctx.get_context(2, Ordering.lex, 'x')
638+ # >>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
639+ # >>> f.terms()
640+ # [4*x0*x1, 2*x0, 3*x1, 1]
641641
642- """
643- cdef:
644- fmpq_mpoly term
645- slong i
642+ # """
643+ # cdef:
644+ # fmpq_mpoly term
645+ # slong i
646646
647- res = []
648- for i in range (len (self )):
649- term = create_fmpq_mpoly(self .ctx)
650- fmpq_mpoly_get_term(term.val, self .val, i, self .ctx.val)
651- res.append(term)
647+ # res = []
648+ # for i in range(len(self)):
649+ # term = create_fmpq_mpoly(self.ctx)
650+ # fmpq_mpoly_get_term(term.val, self.val, i, self.ctx.val)
651+ # res.append(term)
652652
653- return res
653+ # return res
654654
655655 def subs (self , dict_args ) -> fmpq_mpoly:
656656 """
@@ -744,14 +744,14 @@ cdef class fmpq_mpoly(flint_mpoly):
744744 fmpq_mpoly_get_term_coeff_fmpq(v.val, self .val, i, self .ctx.val)
745745 return v
746746
747- def exponent_tuple (self , slong i ):
747+ def monomial (self , slong i ):
748748 """
749749 Return the exponent vector at index `i` as a tuple.
750750
751751 >>> from flint import Ordering
752752 >>> ctx = fmpq_mpoly_ctx.get_context(2, Ordering.lex, 'x')
753753 >>> p = ctx.from_dict({(0, 1): 2, (1, 1): 3})
754- >>> p.exponent_tuple (1)
754+ >>> p.monomial (1)
755755 (0, 1)
756756 """
757757 cdef:
0 commit comments