Skip to content

Commit e904b05

Browse files
committed
Stragglers
1 parent ebe568a commit e904b05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/flint/flint_base/flint_base.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ cdef class flint_mpoly_context(flint_elem):
438438
Create a monomial from a coefficient and exponent vector. ``coeff`` defaults
439439
to ``1``. ``exp_vec``` defaults to ``(0,) * self.nvars()```.
440440
441-
>>> from flint import fmpz_mpoly_ctx, Ordering
441+
>>> from flint import fmpz_mpoly_ctx
442442
>>> ctx = fmpz_mpoly_ctx.get(('x', 2), 'lex')
443443
>>> ctx.term(coeff=5, exp_vec=(2, 3))
444444
5*x0^2*x1^3
@@ -839,7 +839,7 @@ cdef class flint_mpoly(flint_elem):
839839
"""
840840
Returns True if ``self`` contains a term with exponent vector ``x`` and a non-zero coefficient.
841841
842-
>>> from flint import fmpq_mpoly_ctx, Ordering
842+
>>> from flint import fmpq_mpoly_ctx
843843
>>> ctx = fmpq_mpoly_ctx.get(('x', 2), 'lex')
844844
>>> p = ctx.from_dict({(0, 1): 2, (1, 1): 3})
845845
>>> (1, 1) in p
@@ -860,7 +860,7 @@ cdef class flint_mpoly(flint_elem):
860860
"""
861861
Return the exponent vectors and coefficient of each term.
862862
863-
>>> from flint import fmpq_mpoly_ctx, Ordering
863+
>>> from flint import fmpq_mpoly_ctx
864864
>>> ctx = fmpq_mpoly_ctx.get(('x', 2), 'lex')
865865
>>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
866866
>>> list(f.terms())

src/flint/types/nmod_mpoly.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ cdef class nmod_mpoly(flint_mpoly):
712712
"""
713713
Leading coefficient in the monomial ordering.
714714
715-
>>> ctx = nmod_mpoly_ctx.get(('x', 'y'), 11, Ordering.lex)
715+
>>> ctx = nmod_mpoly_ctx.get(('x', 'y'), 11, 'lex')
716716
>>> x, y = ctx.gens()
717717
>>> p = 2*x*y + 3*x + 4*y**2 + 5
718718
>>> p

0 commit comments

Comments
 (0)