Skip to content

Commit 56446e3

Browse files
authored
Merge pull request #89
Refresh test script
2 parents cad7266 + a20c3b7 commit 56446e3

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dist: trusty
1+
dist: xenial
22
sudo: required
33
language: python
44
notifications:
@@ -10,6 +10,8 @@ python:
1010
- "3.4"
1111
- "3.5"
1212
- "3.6"
13+
- "3.7"
14+
- "3.8"
1315
env:
1416
- PARI_VERSION=pari-2.9.4
1517
URLDIR=OLD/2.9
@@ -21,6 +23,8 @@ env:
2123
URLDIR=unix
2224
- PARI_VERSION=pari-2.11.2
2325
URLDIR=unix
26+
- PARI_VERSION=pari-2.11.3
27+
URLDIR=unix
2428
- PARI_VERSION=pari-2.12.0.alpha
2529
URLDIR=unstable
2630
- PARI_VERSION=snapshot

cypari2/gen.pyx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3441,13 +3441,13 @@ cdef class Gen(Gen_base):
34413441
>>> e.omega()
34423442
[1.26920930427955, 0.634604652139777 - 1.45881661693850*I]
34433443
3444-
The precision is determined by the ``ellinit`` call::
3444+
The precision is determined by the ``ellinit`` call:
34453445
34463446
>>> e = pari([0, -1, 1, -10, -20]).ellinit(precision=256)
34473447
>>> e.omega().bitprecision()
34483448
256
34493449
3450-
This also works over quadratic imaginary number fields::
3450+
This also works over quadratic imaginary number fields:
34513451
34523452
>>> e = pari.ellinit([0, -1, 1, -10, -20], "nfinit(y^2 - 2)")
34533453
>>> if pari.version() >= (2, 10, 1):
@@ -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)