Ask Your Question
-1

question about EllipticCurve("prime_range(100)")

asked 11 years ago

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())

Preview: (hide)

Comments

Can you give a complete well written question?

vdelecroix gravatar imagevdelecroix ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

slelievre gravatar image

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
Preview: (hide)
link

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: 11 years ago

Seen: 894 times

Last updated: Jul 04 '14