@@ -12,6 +12,7 @@ AUTHOR:
12
12
13
13
- Yann Laigle-Chapuy (2010-01) initial implementation
14
14
- Lorenz Panny (2023-01): :meth:`minpoly_mod`
15
+ - Giacomo Pope (2023-08): :meth:`reverse`, :meth:`inverse_series_trunc`
15
16
"""
16
17
from cysignals.signals cimport sig_on, sig_off
17
18
@@ -514,10 +515,11 @@ cdef class Polynomial_ZZ_pEX(Polynomial_template):
514
515
sage: f. reverse( degree=200)
515
516
2* x^ 200 + 3* x^ 199 + 5* x^ 198 + 7* x^ 197 + 11* x^ 196 + 13* x^ 195 + 17* x^ 194 + 19* x^ 193
516
517
sage: f. reverse( degree=0)
517
- ValueError Traceback ( most recent call last)
518
+ Traceback ( most recent call last) :
518
519
...
520
+ ValueError: degree argument must be a non-negative integer, got 0
519
521
sage: f. reverse( degree=-5)
520
- ValueError Traceback ( most recent call last)
522
+ Traceback ( most recent call last) :
521
523
...
522
524
ValueError: degree argument must be a non-negative integer, got -5
523
525
"""
@@ -574,16 +576,16 @@ cdef class Polynomial_ZZ_pEX(Polynomial_template):
574
576
sage: f. inverse_series_trunc( 3)
575
577
61* x^ 2 + 40* x + 82
576
578
sage: f. inverse_series_trunc( 0)
577
- ValueError Traceback ( most recent call last)
579
+ Traceback ( most recent call last) :
578
580
...
579
581
ValueError: the precision must be positive, got 0
580
582
sage: f. inverse_series_trunc( -1)
581
- ValueError Traceback ( most recent call last)
583
+ Traceback ( most recent call last) :
582
584
...
583
585
ValueError: the precision must be positive, got -1
584
586
sage: f = x + x^ 2 + x^ 3
585
587
sage: f. inverse_series_trunc( 5)
586
- ValueError Traceback ( most recent call last)
588
+ Traceback ( most recent call last) :
587
589
...
588
590
ValueError: constant term 0 is not a unit
589
591
"""
0 commit comments