Skip to content

Commit 238f4de

Browse files
committed
fixed doctests for elliptic curves on 32-bit
1 parent af4f715 commit 238f4de

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

src/sage/schemes/elliptic_curves/ell_number_field.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,9 +2294,10 @@ def gens(self, **kwds):
22942294
sage: E = EllipticCurve(K, [1, 0, 5*y^2 + 16, 0, 0])
22952295
sage: E.gens(lim1=1, lim3=1)
22962296
[]
2297-
sage: E.rank(), E.gens(lim3=12) # long time (about 4s)
2298-
(1,
2299-
[(369/25*y^3 + 539/25*y^2 + 1178/25*y + 1718/25 : -29038/125*y^3 - 43003/125*y^2 - 92706/125*y - 137286/125 : 1)])
2297+
sage: E.rank()
2298+
1
2299+
sage: E.gens(lim3=13) # long time (about 4s)
2300+
[(... : 1)]
23002301
23012302
Here is a curve of rank 2::
23022303
@@ -2644,7 +2645,7 @@ class number is only `3` is that the class also contains three
26442645
sage: [phi.codomain().cm_discriminant() for phi in E.isogenies_prime_degree()] # long time
26452646
[-92, -23, -23]
26462647
2647-
sage: C.matrix() # long time
2648+
sage: C.matrix() # long time # random
26482649
[1 2 2 4 4 2]
26492650
[2 1 2 4 2 4]
26502651
[2 2 1 2 4 4]
@@ -2676,13 +2677,15 @@ class number is only `3` is that the class also contains three
26762677
determined::
26772678
26782679
sage: G = C.graph() # long time
2679-
sage: G.adjacency_matrix() # long time
2680+
sage: G.adjacency_matrix() # long time # random
26802681
[0 1 1 0 0 1]
26812682
[1 0 1 0 1 0]
26822683
[1 1 0 1 0 0]
26832684
[0 0 1 0 1 1]
26842685
[0 1 0 1 0 1]
26852686
[1 0 0 1 1 0]
2687+
sage: Graph(polytopes.simplex(2).prism().adjacency_matrix()).is_isomorphic(G) # long time
2688+
True
26862689
26872690
To display the graph without any edge labels::
26882691

src/sage/schemes/elliptic_curves/isogeny_small_degree.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,17 +1205,8 @@ def isogenies_13_0(E, minimal_models=True):
12051205
sage: K.<a> = NumberField(f)
12061206
sage: E = EllipticCurve(j=K(0)); E.ainvs()
12071207
(0, 0, 0, 0, 1)
1208-
sage: [phi.codomain().ainvs() for phi in isogenies_13_0(E)] # long time (4s)
1209-
[(0,
1210-
0,
1211-
20360599/165164973653422080*a^11 - 3643073/41291243413355520*a^10 + 1887439/1146978983704320*a^9 + 5557619461/573489491852160*a^8 - 82824971/11947697746920*a^7 + 1030632647/7965131831280*a^6 - 475752603733/29409717530880*a^5 + 87205112531/7352429382720*a^4 - 43618899433/204234149520*a^3 + 5858744881/12764634345*a^2 - 1858703809/2836585410*a + 2535050171/1418292705,
1212-
-139861295/2650795873449984*a^11 - 3455957/5664093746688*a^10 - 345310571/50976843720192*a^9 - 500530795/118001953056*a^8 - 12860048113/265504394376*a^7 - 25007420461/44250732396*a^6 + 458134176455/1416023436672*a^5 + 16701880631/9077073312*a^4 + 155941666417/9077073312*a^3 + 3499310115/378211388*a^2 - 736774863/94552847*a - 21954102381/94552847,
1213-
8342795944891/198197968384106496*a^11 + 8908625263589/20645621706677760*a^10 + 53130542636623/6881873902225920*a^9 + 376780111042213/114697898370432*a^8 + 614884052146333/15930263662560*a^7 + 3566768133324359/7965131831280*a^6 - 1885593809102545/35291661037056*a^5 - 2443732172026523/3676214691360*a^4 - 9525729503937541/1225404897120*a^3 + 51990274442321/40846829904*a^2 + 67834019370596/4254878115*a + 267603083706812/1418292705),
1214-
(0,
1215-
0,
1216-
20360599/165164973653422080*a^11 - 3643073/41291243413355520*a^10 + 1887439/1146978983704320*a^9 + 5557619461/573489491852160*a^8 - 82824971/11947697746920*a^7 + 1030632647/7965131831280*a^6 - 475752603733/29409717530880*a^5 + 87205112531/7352429382720*a^4 - 43618899433/204234149520*a^3 + 5858744881/12764634345*a^2 - 1858703809/2836585410*a + 2535050171/1418292705,
1217-
-6465569317/1325397936724992*a^11 - 112132307/1960647835392*a^10 - 17075412917/25488421860096*a^9 - 207832519229/531008788752*a^8 - 1218275067617/265504394376*a^7 - 9513766502551/177002929584*a^6 + 4297077855437/708011718336*a^5 + 354485975837/4538536656*a^4 + 4199379308059/4538536656*a^3 - 30841577919/189105694*a^2 - 181916484042/94552847*a - 2135779171614/94552847,
1218-
-1316873026840277/34172063514501120*a^11 - 18637401045099413/41291243413355520*a^10 - 36382234917217247/6881873902225920*a^9 - 61142238484016213/19775499719040*a^8 - 576888119306045123/15930263662560*a^7 - 3378443313906256321/7965131831280*a^6 + 326466167429333279/6084769144320*a^5 + 4620083325391594991/7352429382720*a^4 + 9018783894167184149/1225404897120*a^3 - 9206015742300283/7042556880*a^2 - 65141531411426446/4254878115*a - 254321286054666133/1418292705)]
1208+
sage: len([phi.codomain().ainvs() for phi in isogenies_13_0(E)]) # long time (4s)
1209+
2
12191210
"""
12201211
if E.j_invariant()!=0:
12211212
raise ValueError("j-invariant must be 0.")

0 commit comments

Comments
 (0)