File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1673,7 +1673,7 @@ cdef class fmpz_mod_poly(flint_poly):
16731673 Returns ``self`` raised to the power ``e`` modulo `x^ n`:
16741674 :math:`f^ e \m od x^ n`/
16751675
1676- Note: For exponents larger that 2^ 31 ( which do not fit inside a ulong ) use the
1676+ Note: For exponents larger that 2^ 63 ( which do not fit inside a slong ) use the
16771677 method :meth:`~. pow_mod` with the explicit modulus `x^ n`.
16781678
16791679 >>> R = fmpz_mod_poly_ctx( 163)
@@ -1683,6 +1683,8 @@ cdef class fmpz_mod_poly(flint_poly):
16831683 True
16841684 >>> f. pow_trunc( 2** 20, 5)
16851685 132* x^ 4 + 113* x^ 3 + 36* x^ 2 + 48* x + 6
1686+ >>> f. pow_trunc( 5** 25, 5)
1687+ 147* x^ 4 + 98* x^ 3 + 95* x^ 2 + 33* x + 126
16861688 """
16871689 if e < 0 :
16881690 raise ValueError (" Exponent must be non-negative" )
Original file line number Diff line number Diff line change @@ -1195,7 +1195,7 @@ cdef class fq_default_poly(flint_poly):
11951195 Returns ``self`` raised to the power ``e`` modulo `x^ n`:
11961196 :math:`f^ e \m od x^ n`/
11971197
1198- Note: For exponents larger that 2^ 31 ( which do not fit inside a ulong ) use the
1198+ Note: For exponents larger that 2^ 63 ( which do not fit inside a slong ) use the
11991199 method :meth:`~. pow_mod` with the explicit modulus `x^ n`.
12001200
12011201 >>> R = fq_default_poly_ctx( 163)
@@ -1205,6 +1205,8 @@ cdef class fq_default_poly(flint_poly):
12051205 True
12061206 >>> f. pow_trunc( 2** 20, 5)
12071207 132* x^ 4 + 113* x^ 3 + 36* x^ 2 + 48* x + 6
1208+ >>> f. pow_trunc( 5** 25, 5)
1209+ 147* x^ 4 + 98* x^ 3 + 95* x^ 2 + 33* x + 126
12081210 """
12091211 if e < 0 :
12101212 raise ValueError (" Exponent must be non-negative" )
You can’t perform that action at this time.
0 commit comments