Hi, By the way, I very often use the [a..b] notation, which returns Sage integers, and is very fast and has the (a..b) generator notation as well (and is very familiar to Magma users like me):
sage: [q for q in [1..100] if q.is_square()] [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] sage: [q for q in (1..100) if q.is_square()] [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] sage: [q for q in [1,3,5,..100] if q.is_square()] [1, 9, 25, 49, 81] On Jan 22, 2008 12:57 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > John Cremona wrote: > > Thanks for the detailed explanation -- answering all points except > > "Why the s in srange?"! > > > > srange = "sage range"? > > Jason > > > > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---