regina 7.3.1.1__cp38-cp38-macosx_11_0_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of regina might be problematic. Click here for more details.
- regina/__init__.py +203 -0
- regina/engine.cpython-38-darwin.so +0 -0
- regina/plainCompleter.py +221 -0
- regina/pyCensus/__init__.py +14 -0
- regina/pyCensus/christy-knots-links.tdb +0 -0
- regina/pyCensus/closed-hyp-census-full.tdb +0 -0
- regina/pyCensus/closed-nor-census-11.tdb +0 -0
- regina/pyCensus/closed-or-census-11.tdb +0 -0
- regina/pyCensus/cusped-hyp-nor-census-9.tdb +0 -0
- regina/pyCensus/cusped-hyp-or-census-9.tdb +0 -0
- regina/sageRegina/__init__.py +2 -0
- regina/sageRegina/config.py +9 -0
- regina/sageRegina/test.py +132 -0
- regina/sageRegina/testsuite/CMakeLists.txt +60 -0
- regina/sageRegina/testsuite/O2_1.rga +15 -0
- regina/sageRegina/testsuite/O2_1.tri +28 -0
- regina/sageRegina/testsuite/README.txt +20 -0
- regina/sageRegina/testsuite/alltypes.out +1551 -0
- regina/sageRegina/testsuite/alltypes.test +88 -0
- regina/sageRegina/testsuite/angles.out +102 -0
- regina/sageRegina/testsuite/angles.test +72 -0
- regina/sageRegina/testsuite/basic_callback.out +124 -0
- regina/sageRegina/testsuite/basic_sub.out +7 -0
- regina/sageRegina/testsuite/bool.out +6 -0
- regina/sageRegina/testsuite/bool.test +64 -0
- regina/sageRegina/testsuite/bytes.out +17 -0
- regina/sageRegina/testsuite/bytes.test +78 -0
- regina/sageRegina/testsuite/callbacks.out +515 -0
- regina/sageRegina/testsuite/callbacks.test +281 -0
- regina/sageRegina/testsuite/census.out +120 -0
- regina/sageRegina/testsuite/census.test +157 -0
- regina/sageRegina/testsuite/clone.out +18 -0
- regina/sageRegina/testsuite/clone.test +101 -0
- regina/sageRegina/testsuite/constructors.out +14 -0
- regina/sageRegina/testsuite/constructors.test +97 -0
- regina/sageRegina/testsuite/cube.orb +87 -0
- regina/sageRegina/testsuite/discs.out +3 -0
- regina/sageRegina/testsuite/discs.test +40 -0
- regina/sageRegina/testsuite/docstrings.filter +19 -0
- regina/sageRegina/testsuite/docstrings.out +808 -0
- regina/sageRegina/testsuite/docstrings.out.v3 +808 -0
- regina/sageRegina/testsuite/docstrings.test +57 -0
- regina/sageRegina/testsuite/dodec.orb +309 -0
- regina/sageRegina/testsuite/embeddings.out +23 -0
- regina/sageRegina/testsuite/embeddings.test +89 -0
- regina/sageRegina/testsuite/enumerate.out +62 -0
- regina/sageRegina/testsuite/enumerate.test +82 -0
- regina/sageRegina/testsuite/equality.out +112 -0
- regina/sageRegina/testsuite/equality.test +310 -0
- regina/sageRegina/testsuite/euler.out +15 -0
- regina/sageRegina/testsuite/euler.test +95 -0
- regina/sageRegina/testsuite/exception.out +7 -0
- regina/sageRegina/testsuite/exception.test +100 -0
- regina/sageRegina/testsuite/facenumbering.out +546 -0
- regina/sageRegina/testsuite/facenumbering.test +74 -0
- regina/sageRegina/testsuite/faces.out +40 -0
- regina/sageRegina/testsuite/faces.test +72 -0
- regina/sageRegina/testsuite/file.out +1229 -0
- regina/sageRegina/testsuite/file.test +70 -0
- regina/sageRegina/testsuite/file1.rga +0 -0
- regina/sageRegina/testsuite/file2.rga +0 -0
- regina/sageRegina/testsuite/file3.rga +119 -0
- regina/sageRegina/testsuite/flype.out +37 -0
- regina/sageRegina/testsuite/flype.test +50 -0
- regina/sageRegina/testsuite/generic.out +116 -0
- regina/sageRegina/testsuite/generic.test +76 -0
- regina/sageRegina/testsuite/groups.out +70 -0
- regina/sageRegina/testsuite/groups.test +117 -0
- regina/sageRegina/testsuite/hypersurfaces.out +681 -0
- regina/sageRegina/testsuite/hypersurfaces.test +90 -0
- regina/sageRegina/testsuite/i18n-latin1.rga +8 -0
- regina/sageRegina/testsuite/i18n-utf8.rga +8 -0
- regina/sageRegina/testsuite/i18n.out +6 -0
- regina/sageRegina/testsuite/i18n.test +91 -0
- regina/sageRegina/testsuite/id.out +2 -0
- regina/sageRegina/testsuite/id.test +47 -0
- regina/sageRegina/testsuite/index.out +2 -0
- regina/sageRegina/testsuite/index.test +43 -0
- regina/sageRegina/testsuite/integer.out +74 -0
- regina/sageRegina/testsuite/integer.test +56 -0
- regina/sageRegina/testsuite/italian.orb +90 -0
- regina/sageRegina/testsuite/iterators.out +118 -0
- regina/sageRegina/testsuite/iterators.test +128 -0
- regina/sageRegina/testsuite/knotted-Y.orb +47 -0
- regina/sageRegina/testsuite/listener.out +43 -0
- regina/sageRegina/testsuite/listener.test +101 -0
- regina/sageRegina/testsuite/listview.out +416 -0
- regina/sageRegina/testsuite/listview.test +253 -0
- regina/sageRegina/testsuite/lookup.out +13 -0
- regina/sageRegina/testsuite/lookup.test +44 -0
- regina/sageRegina/testsuite/memory1.out +62 -0
- regina/sageRegina/testsuite/memory1.test +154 -0
- regina/sageRegina/testsuite/memory2.out +62 -0
- regina/sageRegina/testsuite/memory2.test +124 -0
- regina/sageRegina/testsuite/memory3.out +92 -0
- regina/sageRegina/testsuite/memory3.test +216 -0
- regina/sageRegina/testsuite/misc.out +7 -0
- regina/sageRegina/testsuite/misc.test +56 -0
- regina/sageRegina/testsuite/operators.out +129 -0
- regina/sageRegina/testsuite/operators.test +61 -0
- regina/sageRegina/testsuite/orb.out +441 -0
- regina/sageRegina/testsuite/orb.test +49 -0
- regina/sageRegina/testsuite/pdf.out +4 -0
- regina/sageRegina/testsuite/pdf.test +49 -0
- regina/sageRegina/testsuite/perm.out +55 -0
- regina/sageRegina/testsuite/perm.test +96 -0
- regina/sageRegina/testsuite/plantri.out +12 -0
- regina/sageRegina/testsuite/plantri.test +60 -0
- regina/sageRegina/testsuite/presentations.out +11 -0
- regina/sageRegina/testsuite/presentations.test +61 -0
- regina/sageRegina/testsuite/refs.out +51 -0
- regina/sageRegina/testsuite/refs.test +128 -0
- regina/sageRegina/testsuite/repr.out +951 -0
- regina/sageRegina/testsuite/repr.out.v3 +951 -0
- regina/sageRegina/testsuite/repr.test +548 -0
- regina/sageRegina/testsuite/safeheldtype_basic.out +17 -0
- regina/sageRegina/testsuite/safeheldtype_basic.test +113 -0
- regina/sageRegina/testsuite/safeheldtype_packet.out +58 -0
- regina/sageRegina/testsuite/safeheldtype_packet.test +181 -0
- regina/sageRegina/testsuite/sample.pdf +0 -0
- regina/sageRegina/testsuite/sets.out +7 -0
- regina/sageRegina/testsuite/sets.test +44 -0
- regina/sageRegina/testsuite/skeleton.out +308 -0
- regina/sageRegina/testsuite/skeleton.test +54 -0
- regina/sageRegina/testsuite/snappea.out +82 -0
- regina/sageRegina/testsuite/snappea.test +107 -0
- regina/sageRegina/testsuite/snapshot.out +15 -0
- regina/sageRegina/testsuite/snapshot.test +78 -0
- regina/sageRegina/testsuite/sort.out +57 -0
- regina/sageRegina/testsuite/sort.test +53 -0
- regina/sageRegina/testsuite/special.out +4 -0
- regina/sageRegina/testsuite/special.test +47 -0
- regina/sageRegina/testsuite/standardtri.out +12101 -0
- regina/sageRegina/testsuite/standardtri.test +455 -0
- regina/sageRegina/testsuite/surfaces.out +2133 -0
- regina/sageRegina/testsuite/surfaces.test +114 -0
- regina/sageRegina/testsuite/swapping.out +25 -0
- regina/sageRegina/testsuite/swapping.test +88 -0
- regina/sageRegina/testsuite/testall.in +176 -0
- regina/sageRegina/testsuite/testbasic.in +279 -0
- regina/sageRegina/testsuite/testcallback.in +150 -0
- regina/sageRegina/testsuite/testsub.in +150 -0
- regina/sageRegina/testsuite/theta_in_solid_torus.orb +65 -0
- regina/sageRegina/testsuite/tightencode.out +40 -0
- regina/sageRegina/testsuite/tightencode.test +108 -0
- regina/sageRegina/testsuite/treedecomp.out +135 -0
- regina/sageRegina/testsuite/treedecomp.test +66 -0
- regina/sageRegina/testsuite/treetraversal.out +52 -0
- regina/sageRegina/testsuite/treetraversal.test +190 -0
- regina/sageRegina/testsuite/trigeneral.out +1251 -0
- regina/sageRegina/testsuite/trigeneral.test +155 -0
- regina/sageRegina/testsuite/utf8.out +42 -0
- regina/sageRegina/testsuite/utf8.test +94 -0
- regina/sageRegina/version.py +5 -0
- regina/sageSetup.py +41 -0
- regina/test.py +6 -0
- regina-7.3.1.1.dist-info/METADATA +99 -0
- regina-7.3.1.1.dist-info/RECORD +160 -0
- regina-7.3.1.1.dist-info/WHEEL +5 -0
- regina-7.3.1.1.dist-info/top_level.txt +4 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
bbcc,ccaa,aabb
|
|
2
|
+
bbcc,acca,abba
|
|
3
|
+
bccccabba
|
|
4
|
+
bdcb,acda,ddba,ccab
|
|
5
|
+
bbcd,adca,abdd,accb
|
|
6
|
+
bcddcabddccb
|
|
7
|
+
bedb,eaac,debd,caec,abcd
|
|
8
|
+
bbcd,adea,aeed,aceb,bdcc
|
|
9
|
+
bcddeaeedcebdcc
|
|
10
|
+
bxVh,cpag,dpbf,eoce,dfHd,Mecg,qfbh,qgai,jqhr,kqir,slMj,mMkt,nHlu,oHmv,wpdn,coxb,jghi,sjiy,ytkr,ulsz,vmtA,wnuB,Cxov,pwDa,Nzsr,AtyN,BuzG,CvAG,FDwB,xCEE,FRDD,GIEC,ALFB,Mmne,LJRF,KKQI,LPJJ,GOKI,klHf,SOzy,PLNS,QKOT,JPTR,IQVE,UTON,UQPS,VVTS,aRUU
|
|
11
|
+
bbcd,aefa,afgh,ahie,bdij,bjkc,cklm,cmnd,dope,epqf,frsg,gstu,guuh,hvoo,innp,ioqj,jpwx,kxys,krzl,lzAB,lBmm,nBCD,qEFx,qwGr,rGHz,syIt,tIJK,tKvu,vKLM,vMNO,wOPF,wEQG,xFRy,yRSI,zHSA,ATTL,ALCB,CKJU,CUND,DMPO,DNPE,EONQ,FPVR,GQVH,HVTI,JSUJ,LTVM,QUSR
|
|
12
|
+
bcdefafghhiedijjkcklmmndopepqfrsgstuuuhvoonnpoqjpwxxysrzlzABBmmBCDEFxwGrGHzyItIJKKvuKLMMNOOPFEQGFRyRSIHSATTLLCBKJUUNDMPONPEONQPVRQVHVTISUJTVMUSR
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Provides tests for plantri format encodings and decodings.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
def looksIsomorphic(g, h):
|
|
35
|
+
if g.size() != h.size():
|
|
36
|
+
return False
|
|
37
|
+
if g.canonicalPlantri() != h.canonicalPlantri():
|
|
38
|
+
return False
|
|
39
|
+
return True
|
|
40
|
+
|
|
41
|
+
def test(g):
|
|
42
|
+
a = g.plantri()
|
|
43
|
+
b = g.canonicalPlantri()
|
|
44
|
+
c = g.canonicalPlantri(True, True)
|
|
45
|
+
|
|
46
|
+
print(a)
|
|
47
|
+
print(b)
|
|
48
|
+
print(c)
|
|
49
|
+
|
|
50
|
+
if ModelLinkGraph.fromPlantri(a) != g:
|
|
51
|
+
print('Plantri decoding failed!')
|
|
52
|
+
if not looksIsomorphic(ModelLinkGraph.fromPlantri(b), g):
|
|
53
|
+
print('Canonical plantri decoding failed!')
|
|
54
|
+
if not looksIsomorphic(ModelLinkGraph.fromPlantri(c), g):
|
|
55
|
+
print('Tight canonical plantri decoding failed!')
|
|
56
|
+
|
|
57
|
+
test(ExampleLink.trefoil().graph())
|
|
58
|
+
test(ExampleLink.figureEight().graph())
|
|
59
|
+
test(ExampleLink.whitehead().graph())
|
|
60
|
+
test(ExampleLink.gst().graph())
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
g0^7 g3 g1^-2 g3^-1
|
|
2
|
+
g3 g1^2 g3^-1 g0^-7
|
|
3
|
+
g3 g1^2 g3^-1 g0^-7 g3 g1^2 g3^-1 g0^-7
|
|
4
|
+
g3 g1^2 g3^-1 g0^-7
|
|
5
|
+
1
|
|
6
|
+
g0^7 g3 g1^-2 g3^-1
|
|
7
|
+
g0^7 g3 g1^-2 g3^-1 g0^7 g3 g1^-2 g3^-1
|
|
8
|
+
g0^7 g4^-1 g6 g1^-2 g6^-1 g4
|
|
9
|
+
g0 g1^-1 g0 g1^-1 g0 g1^-1 g0 g1^-1 g0 g1^-1 g0 g1^-1 g0 g1^-1 g0 g5 g2^-2 g5^-1 g0^-1
|
|
10
|
+
g4^-2 g5 g0^7 g3 g1^-2 g3^-1 g2^2 g3^-1
|
|
11
|
+
g0^7 g3 g1^-2 g3^-1 g0^7 g3 g1^-2 g3^-1 g0^7 g3 g1^-2 g3^-1 g0^7 g3 g1^-2 g3^-1
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Provides various tests for group presentation.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
#
|
|
17
|
+
# As an exception, when this program is distributed through (i) the
|
|
18
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
19
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
20
|
+
# digital rights management, device limits and/or redistribution
|
|
21
|
+
# restrictions that are required by its terms of service.
|
|
22
|
+
# License, or (at your option) any later version.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
e = GroupExpression('a^7dB^2D')
|
|
35
|
+
print(e)
|
|
36
|
+
print(e.inverse())
|
|
37
|
+
print(e.power(-2))
|
|
38
|
+
print(e.power(-1))
|
|
39
|
+
print(e.power(0))
|
|
40
|
+
print(e.power(1))
|
|
41
|
+
print(e.power(2))
|
|
42
|
+
dummy = e.substitute(3, GroupExpression('Eg'))
|
|
43
|
+
print(e)
|
|
44
|
+
dummy = e.substitute([GroupExpression('aB'), \
|
|
45
|
+
GroupExpression('c'), \
|
|
46
|
+
GroupExpression(''), \
|
|
47
|
+
GroupExpression('B^2'), \
|
|
48
|
+
GroupExpression('A'), \
|
|
49
|
+
GroupExpression('g'), \
|
|
50
|
+
GroupExpression('f')])
|
|
51
|
+
print(e)
|
|
52
|
+
|
|
53
|
+
e = GroupExpression('a^7dB^2D')
|
|
54
|
+
e.addTermsLast(GroupExpression('c^2D'))
|
|
55
|
+
e.addTermsFirst(GroupExpression('E^2f'))
|
|
56
|
+
print(e)
|
|
57
|
+
|
|
58
|
+
e = GroupExpression('a^7dB^2D')
|
|
59
|
+
e.addTermsFirst(e)
|
|
60
|
+
e.addTermsLast(e)
|
|
61
|
+
print(e)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
( 1 2 3 4 )
|
|
2
|
+
( 1 2 -3 4 )
|
|
3
|
+
( 1 2 -3 5 )
|
|
4
|
+
|
|
5
|
+
( 1 2 3 4 )
|
|
6
|
+
( 1 2 inf 4 )
|
|
7
|
+
( 1 2 inf 5 )
|
|
8
|
+
|
|
9
|
+
1 2
|
|
10
|
+
3 4
|
|
11
|
+
|
|
12
|
+
1 -2
|
|
13
|
+
3 4
|
|
14
|
+
|
|
15
|
+
1 -2
|
|
16
|
+
3 5
|
|
17
|
+
|
|
18
|
+
5 x^3 + 4 x^2 + 3 x + 2
|
|
19
|
+
5 x^3 + 4 x^2 + 3 x + 2
|
|
20
|
+
5 x^3 + 4 x^2 + 3 x + 2
|
|
21
|
+
5 x^3 + 4 x^2 + 7 x + 2
|
|
22
|
+
|
|
23
|
+
5 x^2 + 4 x + 3 + 2 x^-1
|
|
24
|
+
5 x^2 + 4 x + 3 + 2 x^-1
|
|
25
|
+
5 x^2 + 7 x + 3 + 2 x^-1
|
|
26
|
+
|
|
27
|
+
x^2 y^3
|
|
28
|
+
x^2 y^3
|
|
29
|
+
7 x^2 y^3
|
|
30
|
+
|
|
31
|
+
5 x + 2
|
|
32
|
+
4 x + 2
|
|
33
|
+
-4 x + 2
|
|
34
|
+
|
|
35
|
+
g0 g1 g0^-1 g1 g0 g1^-1
|
|
36
|
+
g0^2 g1 g0^-1 g1 g0 g1^-1
|
|
37
|
+
g0^3 g1 g0^-1 g1 g0 g1^-1
|
|
38
|
+
g0^4 g1 g0^-1 g1 g0 g1^-1
|
|
39
|
+
g0^5 g1 g0^-1 g1 g0 g1^-1
|
|
40
|
+
|
|
41
|
+
g0^5 g1 g0^-1 g1 g0 g1^-1
|
|
42
|
+
g0^6 g1 g0^-1 g1 g0 g1^-1
|
|
43
|
+
|
|
44
|
+
g0^6
|
|
45
|
+
g0^7
|
|
46
|
+
|
|
47
|
+
foo
|
|
48
|
+
foo
|
|
49
|
+
foo
|
|
50
|
+
foo
|
|
51
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Provides tests for passing by value vs reference.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
v = VectorInt([1,2,3,4])
|
|
35
|
+
print(v)
|
|
36
|
+
v[2].negate()
|
|
37
|
+
print(v)
|
|
38
|
+
v[3] = 5
|
|
39
|
+
print(v)
|
|
40
|
+
print()
|
|
41
|
+
|
|
42
|
+
v = VectorLarge([1,2,3,4])
|
|
43
|
+
print(v)
|
|
44
|
+
v[2].makeInfinite()
|
|
45
|
+
print(v)
|
|
46
|
+
v[3] = 5
|
|
47
|
+
print(v)
|
|
48
|
+
print()
|
|
49
|
+
|
|
50
|
+
m = MatrixInt([[1,2], [3,4]])
|
|
51
|
+
print(m.detail())
|
|
52
|
+
m.entry(0,1).negate()
|
|
53
|
+
print(m.detail())
|
|
54
|
+
# The following line does not even compile:
|
|
55
|
+
# m.entry(1,1) = 3 # should not work
|
|
56
|
+
m.set(1,1,5)
|
|
57
|
+
print(m.detail())
|
|
58
|
+
|
|
59
|
+
p = Polynomial([2,3,4,5])
|
|
60
|
+
print(p)
|
|
61
|
+
p.leading().negate() # should do nothing due to constness
|
|
62
|
+
print(p)
|
|
63
|
+
p[2].negate() # should do nothing due to constness
|
|
64
|
+
print(p)
|
|
65
|
+
p[1] = 7; # should work
|
|
66
|
+
print(p)
|
|
67
|
+
print()
|
|
68
|
+
|
|
69
|
+
p = Laurent(-1, [2,3,4,5])
|
|
70
|
+
print(p)
|
|
71
|
+
p[1].negate() # should do nothing due to constness
|
|
72
|
+
print(p)
|
|
73
|
+
p[1] = 7; # should work
|
|
74
|
+
print(p)
|
|
75
|
+
print()
|
|
76
|
+
|
|
77
|
+
p = Laurent2(2,3)
|
|
78
|
+
print(p)
|
|
79
|
+
p[2,3].negate() # should do nothing due to constness
|
|
80
|
+
print(p)
|
|
81
|
+
p[2,3] = 7; # should work
|
|
82
|
+
print(p)
|
|
83
|
+
print()
|
|
84
|
+
|
|
85
|
+
p = Cyclotomic(3, [2, 5])
|
|
86
|
+
print(p)
|
|
87
|
+
p[1] = 4
|
|
88
|
+
print(p)
|
|
89
|
+
p[1].negate()
|
|
90
|
+
print(p)
|
|
91
|
+
print()
|
|
92
|
+
|
|
93
|
+
g = Example3.poincare().fundamentalGroup()
|
|
94
|
+
|
|
95
|
+
print(g.relation(0))
|
|
96
|
+
g.relation(0).term(0).exponent = 2
|
|
97
|
+
print(g.relation(0))
|
|
98
|
+
g.relation(0).terms()[0].exponent = 3
|
|
99
|
+
print(g.relation(0))
|
|
100
|
+
g.relations()[0].term(0).exponent = 4
|
|
101
|
+
print(g.relation(0))
|
|
102
|
+
g.relations()[0].terms()[0].exponent = 5
|
|
103
|
+
print(g.relation(0))
|
|
104
|
+
print()
|
|
105
|
+
|
|
106
|
+
r = g.relations()[0]
|
|
107
|
+
print(r)
|
|
108
|
+
g.relation(0).term(0).exponent = 6
|
|
109
|
+
print(r)
|
|
110
|
+
r = None
|
|
111
|
+
print()
|
|
112
|
+
|
|
113
|
+
t = g.relation(0).terms()[0]
|
|
114
|
+
print(t)
|
|
115
|
+
g.relation(0).term(0).exponent = 7
|
|
116
|
+
print(t)
|
|
117
|
+
print()
|
|
118
|
+
|
|
119
|
+
n = NormalSurfaces(Example3.figureEight(), NS_QUAD)
|
|
120
|
+
|
|
121
|
+
for s in n:
|
|
122
|
+
s.setName('foo')
|
|
123
|
+
|
|
124
|
+
for s in n:
|
|
125
|
+
print(s.name())
|
|
126
|
+
|
|
127
|
+
print()
|
|
128
|
+
|