15 lines
601 B
Diff
15 lines
601 B
Diff
|
--- a/src/sage/rings/polynomial/polynomial_zmod_flint.pyx
|
||
|
+++ b/src/sage/rings/polynomial/polynomial_zmod_flint.pyx
|
||
|
@@ -237,8 +237,9 @@ cdef class Polynomial_zmod_flint(Polynomial_template):
|
||
|
|
||
|
sage: a = ZZ['x'](range(100000))
|
||
|
sage: R = Integers(3)['x']
|
||
|
- sage: R(a) # long time (7s on sage.math, 2013)
|
||
|
- 2*x^99998 + ... + x
|
||
|
+ sage: p = R(a)
|
||
|
+ sage: p.truncate(10) # testing the whole poly is VERY SLOW
|
||
|
+ 2*x^8 + x^7 + 2*x^5 + x^4 + 2*x^2 + x
|
||
|
"""
|
||
|
sig_on()
|
||
|
fmpz_poly_get_nmod_poly(&self.x, x)
|