Skip to content

Commit eac2790

Browse files
committed
fix changed doctests with latest snapshot
1 parent 09a90de commit eac2790

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cypari2/gen.pyx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3913,7 +3913,7 @@ cdef class Gen(Gen_base):
39133913
>>> pari('1/x + O(x^2)').eval(pari('O(x^3)'))
39143914
Traceback (most recent call last):
39153915
...
3916-
PariError: impossible inverse in gdiv: O(x^3)
3916+
PariError: impossible inverse in ...
39173917
>>> pari('O(x^0)').eval(0)
39183918
Traceback (most recent call last):
39193919
...
@@ -3991,9 +3991,9 @@ cdef class Gen(Gen_base):
39913991
39923992
>>> nf = pari('x^2 + 1').nfinit()
39933993
>>> nf
3994-
[x^2 + 1, [0, 1], -4, 1, [Mat([1, 0.E-38 + 1.00000000000000*I]), [1, 1.00000000000000; 1, -1.00000000000000], [1, 1; 1, -1], [2, 0; 0, -2], [2, 0; 0, 2], [1, 0; 0, -1], [1, [0, -1; 1, 0]], [2]], [0.E-38 + 1.00000000000000*I], [1, x], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, 0]]
3994+
[x^2 + 1, [0, 1], -4, 1, [Mat([1, 0.E-38 + 1.00000000000000*I]), [1, 1.00000000000000; 1, -1.00000000000000], ..., [2, 0; 0, -2], [2, 0; 0, 2], [1, 0; 0, -1], [1, [0, -1; 1, 0]], [2]], [0.E-38 + 1.00000000000000*I], [1, x], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, 0]]
39953995
>>> nf(x='y')
3996-
[y^2 + 1, [0, 1], -4, 1, [Mat([1, 0.E-38 + 1.00000000000000*I]), [1, 1.00000000000000; 1, -1.00000000000000], [1, 1; 1, -1], [2, 0; 0, -2], [2, 0; 0, 2], [1, 0; 0, -1], [1, [0, -1; 1, 0]], [2]], [0.E-38 + 1.00000000000000*I], [1, y], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, 0]]
3996+
[y^2 + 1, [0, 1], -4, 1, [Mat([1, 0.E-38 + 1.00000000000000*I]), [1, 1.00000000000000; 1, -1.00000000000000], ..., [2, 0; 0, -2], [2, 0; 0, 2], [1, 0; 0, -1], [1, [0, -1; 1, 0]], [2]], [0.E-38 + 1.00000000000000*I], [1, y], [1, 0; 0, 1], [1, 0, 0, -1; 0, 1, 1, 0]]
39973997
39983998
Tests:
39993999
@@ -4259,8 +4259,6 @@ cdef class Gen(Gen_base):
42594259
>>> from cypari2 import Pari
42604260
>>> pari = Pari()
42614261
4262-
>>> pari('[2,1;2,1]').matker()
4263-
[-1/2; 1]
42644262
>>> pari('[2,1;2,1]').matkerint()
42654263
[1; -2]
42664264
>>> import warnings

0 commit comments

Comments
 (0)