@@ -984,21 +984,29 @@ def basic_j_invariant_parameters(self, coeff_indices=None, nonzero=False):
984
984
...
985
985
TypeError: coefficients indices must be integers
986
986
987
+ ::
988
+
987
989
sage: phi.basic_j_invariant_parameters([1, 10])
988
990
Traceback (most recent call last):
989
991
...
990
992
ValueError: indices must be > 0 and < 3
991
993
994
+ ::
995
+
992
996
sage: phi.basic_j_invariant_parameters([1, 1])
993
997
Traceback (most recent call last):
994
998
...
995
999
ValueError: indices must be distinct and sorted
996
1000
1001
+ ::
1002
+
997
1003
sage: phi.basic_j_invariant_parameters([2, 1])
998
1004
Traceback (most recent call last):
999
1005
...
1000
1006
ValueError: indices must be distinct and sorted
1001
1007
1008
+ ::
1009
+
1002
1010
sage: phi.basic_j_invariant_parameters('x')
1003
1011
Traceback (most recent call last):
1004
1012
...
@@ -1441,51 +1449,71 @@ def j_invariant(self, parameter=None, check=True):
1441
1449
...
1442
1450
TypeError: parameter must not be None if the rank is greater than 2
1443
1451
1452
+ ::
1453
+
1444
1454
sage: phi.j_invariant(-1)
1445
1455
Traceback (most recent call last):
1446
1456
...
1447
1457
ValueError: integer parameter must be >= 1 and < the rank (=4)
1448
1458
1459
+ ::
1460
+
1449
1461
sage: phi.j_invariant('x')
1450
1462
Traceback (most recent call last):
1451
1463
...
1452
1464
TypeError: parameter must be a tuple or a list of length 2 or an integer
1453
1465
1466
+ ::
1467
+
1454
1468
sage: phi.j_invariant((1, 2, 3))
1455
1469
Traceback (most recent call last):
1456
1470
...
1457
1471
ValueError: list or tuple parameter must be of length 2
1458
1472
1473
+ ::
1474
+
1459
1475
sage: phi.j_invariant(('x', (1, 2, 3)))
1460
1476
Traceback (most recent call last):
1461
1477
...
1462
1478
TypeError: list or tuple parameter must contain tuples or lists
1463
1479
1480
+ ::
1481
+
1464
1482
sage: phi.j_invariant(((1, 2), 'x'))
1465
1483
Traceback (most recent call last):
1466
1484
...
1467
1485
TypeError: list or tuple parameter must contain tuples or lists
1468
1486
1487
+ ::
1488
+
1469
1489
sage: phi.j_invariant(((1, 2, 3, 4, 5), (2, 1)))
1470
1490
Traceback (most recent call last):
1471
1491
...
1472
1492
ValueError: components of tuple or list parameter have incorrect length
1473
1493
1494
+ ::
1495
+
1474
1496
sage: phi.j_invariant(((1, 'x'), (2, 3, 8)))
1475
1497
Traceback (most recent call last):
1476
1498
...
1477
1499
TypeError: components of tuple or list parameter must contain only integers
1478
1500
1501
+ ::
1502
+
1479
1503
sage: phi.j_invariant(((1, 2), (2, 3, 'x')))
1480
1504
Traceback (most recent call last):
1481
1505
...
1482
1506
TypeError: components of tuple or list parameter must contain only integers
1483
1507
1508
+ ::
1509
+
1484
1510
sage: phi.j_invariant(((1, 2), (4, 3, 7)))
1485
1511
Traceback (most recent call last):
1486
1512
...
1487
1513
ValueError: parameter does not satisfy the weight-0 condition
1488
1514
1515
+ ::
1516
+
1489
1517
sage: phi.j_invariant(((1, 2), (4, 3, 7)), check=False)
1490
1518
1/T^13
1491
1519
"""
0 commit comments