Ask Your Question
-1

question about EllipticCurve("prime_range(100)")

asked 2014-03-24 17:44:43 -0600

cjsh gravatar image

http://www.sagemath.org/files/sage_st...

why cannot run below:

for E in EllipticCurve("prime_range(100)"): ...: print "%s\t%s"%(E.cremona_label(), E.rank())

edit retag flag offensive close merge delete

Comments

Can you give a complete well written question?

vdelecroix gravatar imagevdelecroix ( 2014-06-29 07:18:22 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-07-04 16:17:17 -0600

The syntax in Sage has changed a little bit since 2005.

A look at the documentation for the Cremona database in Sage reveals how to run this example today:

sage: version()
'Sage Version 6.3.beta4, Release Date: 2014-06-19'
sage: for E in CremonaDatabase().iter(prime_range(100)):
....:     print "%s\t%s"%(E.cremona_label(), E.rank())
....:     
11a1    0
11a2    0
11a3    0
17a1    0
17a2    0
17a3    0
17a4    0
19a1    0
19a2    0
19a3    0
37a1    1
37b1    0
37b2    0
37b3    0
43a1    1
53a1    1
61a1    1
67a1    0
73a1    0
73a2    0
79a1    1
83a1    1
89a1    1
89b1    0
89b2    0
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-03-24 17:44:43 -0600

Seen: 67 times

Last updated: Jul 04 '14