@@ -129,7 +129,7 @@ cdef class fmpz_mod_mpoly_ctx(flint_mpoly_context):
129129 Return the number of variables in the context
130130
131131 >>> from flint import Ordering
132- >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.lex, 'x')
132+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.lex, 11, 'x')
133133 >>> ctx.nvars()
134134 4
135135 """
@@ -140,7 +140,7 @@ cdef class fmpz_mod_mpoly_ctx(flint_mpoly_context):
140140 Return the term order of the context object.
141141
142142 >>> from flint import Ordering
143- >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.deglex, 'w')
143+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.deglex, 11, 'w')
144144 >>> ctx.ordering()
145145 <Ordering.deglex: 1>
146146 """
@@ -165,10 +165,10 @@ cdef class fmpz_mod_mpoly_ctx(flint_mpoly_context):
165165 Return whether the modulus is prime
166166
167167 >>> from flint import Ordering
168- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2**127 , Ordering.degrevlex, 'z')
168+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(4 , Ordering.degrevlex, 2**127 , 'z')
169169 >>> ctx.is_prime()
170170 False
171- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2**127 - 1, Ordering.degrevlex , 'z')
171+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.degrevlex, 2**127 - 1, 'z')
172172 >>> ctx.is_prime()
173173 True
174174 """
@@ -181,7 +181,7 @@ cdef class fmpz_mod_mpoly_ctx(flint_mpoly_context):
181181 Return the `i`th generator of the polynomial ring
182182
183183 >>> from flint import Ordering
184- >>> ctx = fmpz_mod_mpoly_ctx.get_context(3, Ordering.degrevlex, 'z')
184+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(3, Ordering.degrevlex, 11, 'z')
185185 >>> ctx.gen(1)
186186 z1
187187 """
@@ -212,7 +212,7 @@ cdef class fmpz_mod_mpoly_ctx(flint_mpoly_context):
212212 to fmpz) representing exponents, and corresponding values of fmpz.
213213
214214 >>> from flint import Ordering
215- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x,y')
215+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x,y')
216216 >>> ctx.from_dict({(1,0):2, (1,1):3, (0,1):1})
217217 3*x*y + 2*x + y
218218 """
@@ -315,7 +315,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
315315 Negative exponents are made positive.
316316
317317 >>> from flint import Ordering
318- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
318+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
319319 >>> p = ctx.from_dict({(0, 1): 2, (1, 1): 3})
320320 >>> p[1, 1]
321321 3
@@ -341,7 +341,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
341341 Negative exponents are made positive.
342342
343343 >>> from flint import Ordering
344- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
344+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
345345 >>> p = ctx.from_dict({(0, 1): 2, (1, 1): 3})
346346 >>> p[1, 1] = 20
347347 >>> p
@@ -611,7 +611,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
611611 In-place addition, mutates self.
612612
613613 >>> from flint import Ordering
614- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
614+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
615615 >>> f = ctx.from_dict({(1, 0): 2, (0, 1): 3, (1, 1): 4})
616616 >>> f
617617 4*x0*x1 + 2*x0 + 3*x1
@@ -637,7 +637,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
637637 In-place subtraction, mutates self.
638638
639639 >>> from flint import Ordering
640- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
640+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
641641 >>> f = ctx.from_dict({(1, 0): 2, (0, 1): 3, (1, 1): 4})
642642 >>> f
643643 4*x0*x1 + 2*x0 + 3*x1
@@ -663,7 +663,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
663663 In-place multiplication, mutates self.
664664
665665 >>> from flint import Ordering
666- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
666+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
667667 >>> f = ctx.from_dict({(1, 0): 2, (0, 1): 3, (1, 1): 4})
668668 >>> f
669669 4*x0*x1 + 2*x0 + 3*x1
@@ -689,7 +689,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
689689 Return the exponent vectors of each term as a tuple of fmpz.
690690
691691 >>> from flint import Ordering
692- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
692+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
693693 >>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
694694 >>> f.monoms()
695695 [(1, 1), (1, 0), (0, 1), (0, 0)]
@@ -711,7 +711,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
711711 Return the coefficients of each term as a fmpz
712712
713713 >>> from flint import Ordering
714- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
714+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
715715 >>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
716716 >>> f.coeffs()
717717 [4, 2, 3, 1]
@@ -734,7 +734,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
734734 # Return the terms of this polynomial as a list of fmpz_mod_mpolys.
735735
736736 # >>> from flint import Ordering
737- # >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
737+ # >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
738738 # >>> f = ctx.from_dict({(0, 0): 1, (1, 0): 2, (0, 1): 3, (1, 1): 4})
739739 # >>> f.terms()
740740 # [4*x0*x1, 2*x0, 3*x1, 1]
@@ -758,7 +758,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
758758 all values must be fmpz.
759759
760760 >>> from flint import Ordering
761- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2 , Ordering.lex, ' x' )
761+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2 , Ordering.lex, 11 , ' x' )
762762 >>> f = ctx.from_dict({(0 , 0 ): 1 , (1 , 0 ): 2 , (0 , 1 ): 3 , (1 , 1 ): 4 })
763763 >>> f.subs({"x1": 0})
764764 2*x0 + 1
@@ -787,8 +787,8 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
787787 from this polynomials context.
788788
789789 >>> from flint import Ordering
790- >>> ctx = fmpz_mod_mpoly_ctx.get_context(1 , Ordering.lex, ' x' )
791- >>> ctx1 = fmpz_mod_mpoly_ctx.get_context(2 , Ordering.lex, ' y' )
790+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(1 , Ordering.lex, 11 , ' x' )
791+ >>> ctx1 = fmpz_mod_mpoly_ctx.get_context(2 , Ordering.lex, 11 , ' y' )
792792 >>> f = ctx.from_dict({(2 ,): 1 })
793793 >>> g = ctx1.from_dict({(1 , 0 ): 1 , (0 , 1 ): 1 })
794794 >>> f
@@ -837,7 +837,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
837837 Return the context object for this polynomials.
838838
839839 >>> from flint import Ordering
840- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
840+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
841841 >>> p = ctx.from_dict({(0, 1): 2})
842842 >>> ctx is p.context()
843843 True
@@ -852,7 +852,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
852852 Return the coefficient at index `i`.
853853
854854 >>> from flint import Ordering
855- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
855+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
856856 >>> p = ctx.from_dict({(0, 1): 2, (1, 1): 3})
857857 >>> p.coefficient(1)
858858 2
@@ -870,7 +870,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
870870 Return the exponent vector at index `i` as a tuple.
871871
872872 >>> from flint import Ordering
873- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
873+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
874874 >>> p = ctx.from_dict({(0, 1): 2, (1, 1): 3})
875875 >>> p.monomial(1)
876876 (0, 1)
@@ -889,7 +889,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
889889 Return a dictionary of variable name to degree.
890890
891891 >>> from flint import Ordering
892- >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.lex, 'x')
892+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.lex, 11, 'x')
893893 >>> p = ctx.from_dict({(1, 0, 0, 0): 1, (0, 2, 0, 0): 2, (0, 0, 3, 0): 3})
894894 >>> p.degrees()
895895 (1, 2, 3, 0)
@@ -906,7 +906,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
906906 Return the total degree.
907907
908908 >>> from flint import Ordering
909- >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.lex, 'x')
909+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(4, Ordering.lex, 11, 'x')
910910 >>> p = ctx.from_dict({(1, 0, 0, 0): 1, (0, 2, 0, 0): 2, (0, 0, 3, 0): 3})
911911 >>> p.total_degree()
912912 3
@@ -930,7 +930,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
930930 Return the gcd of self and other.
931931
932932 >>> from flint import Ordering
933- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
933+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
934934 >>> f = ctx.from_dict({(1, 1): 4, (0, 0): 1})
935935 >>> g = ctx.from_dict({(0, 1): 2, (1, 0): 2})
936936 >>> (f * g).gcd(f)
@@ -952,7 +952,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
952952 Return the square root of self.
953953
954954 >>> from flint import Ordering
955- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
955+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
956956 >>> f = ctx.from_dict({(1, 1): 4, (0, 0): 1})
957957 >>> (f * f).sqrt()
958958 4*x0*x1 + 1
@@ -976,7 +976,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
976976
977977 >>> from flint import Ordering
978978 >>> Zm = fmpz_mod_mpoly
979- >>> ctx = fmpz_mod_mpoly_ctx.get_context(3, Ordering.lex, 'x,y,z')
979+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(3, Ordering.lex, 11, 'x,y,z')
980980 >>> p1 = Zm("2*x + 4", ctx)
981981 >>> p2 = Zm("3*x*z + + 3*x + 3*z + 3", ctx)
982982 >>> (p1 * p2).factor()
@@ -1016,7 +1016,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
10161016
10171017 >>> from flint import Ordering
10181018 >>> Zm = fmpz_mod_mpoly
1019- >>> ctx = fmpz_mod_mpoly_ctx.get_context(3, Ordering.lex, 'x,y,z')
1019+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(3, Ordering.lex, 11, 'x,y,z')
10201020 >>> p1 = Zm("2*x + 4", ctx)
10211021 >>> p2 = Zm("3*x*y + 3*x + 3*y + 3", ctx)
10221022 >>> (p1 * p2).factor_squarefree()
@@ -1083,7 +1083,7 @@ cdef class fmpz_mod_mpoly(flint_mpoly):
10831083 variable in the context.
10841084
10851085 >>> from flint import Ordering
1086- >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 'x')
1086+ >>> ctx = fmpz_mod_mpoly_ctx.get_context(2, Ordering.lex, 11, 'x')
10871087 >>> p = ctx.from_dict({(0, 3): 2, (2, 1): 3})
10881088 >>> p
10891089 3*x0^2*x1 + 2*x1^3
0 commit comments