@@ -3441,13 +3441,13 @@ cdef class Gen(Gen_base):
3441
3441
>>> e.omega()
3442
3442
[1.26920930427955, 0.634604652139777 - 1.45881661693850*I]
3443
3443
3444
- The precision is determined by the ``ellinit`` call::
3444
+ The precision is determined by the ``ellinit`` call:
3445
3445
3446
3446
>>> e = pari([0, -1, 1, -10, -20]).ellinit(precision=256)
3447
3447
>>> e.omega().bitprecision()
3448
3448
256
3449
3449
3450
- This also works over quadratic imaginary number fields::
3450
+ This also works over quadratic imaginary number fields:
3451
3451
3452
3452
>>> e = pari.ellinit([0, -1, 1, -10, -20], "nfinit(y^2 - 2)")
3453
3453
>>> if pari.version() >= (2, 10, 1):
@@ -3913,7 +3913,7 @@ cdef class Gen(Gen_base):
3913
3913
>>> pari('1/x + O(x^2)').eval(pari('O(x^3)'))
3914
3914
Traceback (most recent call last):
3915
3915
...
3916
- PariError: impossible inverse in gdiv: O(x^3)
3916
+ PariError: impossible inverse in ...
3917
3917
>>> pari('O(x^0)').eval(0)
3918
3918
Traceback (most recent call last):
3919
3919
...
@@ -3991,9 +3991,9 @@ cdef class Gen(Gen_base):
3991
3991
3992
3992
>>> nf = pari('x^2 + 1').nfinit()
3993
3993
>>> 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]]
3995
3995
>>> 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]]
3997
3997
3998
3998
Tests:
3999
3999
@@ -4259,8 +4259,6 @@ cdef class Gen(Gen_base):
4259
4259
>>> from cypari2 import Pari
4260
4260
>>> pari = Pari()
4261
4261
4262
- >>> pari('[2,1;2,1]').matker()
4263
- [-1/2; 1]
4264
4262
>>> pari('[2,1;2,1]').matkerint()
4265
4263
[1; -2]
4266
4264
>>> import warnings
0 commit comments