Ask Your Question

ajb's profile - activity

2020-11-27 11:33:16 +0200 received badge  Popular Question (source)
2020-11-27 11:33:16 +0200 received badge  Notable Question (source)
2018-02-02 05:03:13 +0200 asked a question Listing fractions

Hi, I would like to request help in listing rational numbers. For motivation, the command

[x for x in IntegerRange(1,10)]

outputs the integers from 1 through 9. Is there a similar command for listing out rational numbers a/b with a and b in the range (x1,y1) and (x2,y2), respectively.

For instance, if a is in range (1,3) and b is in (4,6), I want to return

[1/4, 1/5, 1/2, 2/5]

On a related note, how can one impose a gcd(x,y)==1 in the following list?

[(x,y) for x in IntegerRange(1,10) for y in IntegerRange(1,10)]

2018-01-21 06:37:05 +0200 received badge  Student (source)
2018-01-21 06:29:44 +0200 asked a question Stein-Watkins Database of Elliptic Curves

With the Cremona database, sage can list ranks of elliptic curves of conductor in an interval [a,b]. For instance,

[(E.ainvs(), E.rank()) for E in cremona_curves(srange(a,b))]

Can the same be done on sage with the Stein-Watkins database?

2018-01-21 06:29:44 +0200 asked a question Stein-Watkins Database of Elliptic Curves

With the Cremona database, sage can list ranks of elliptic curves of conductor in an interval [a,b]. For instance,

[(E.ainvs(), E.rank()) for E in cremona_curves(srange(a,b))]

Can the same be done on sage with the Stein-Watkins database?