| 1 | initial version |
from srange? :
Docstring:
Return a list of numbers "start, start+step, ..., start+k*step",
where "start+k*step < end" and "start+(k+1)*step >= end".
This provides one way to iterate over Sage integers as opposed to
Python int's. It also allows you to specify step sizes for such an
iteration.
HTH,
| 2 | No.2 Revision |
from srange? :
Docstring:
Return a list of numbers "start, start+step, ..., start+k*step",
where "start+k*step < end" and "start+(k+1)*step >= end".
This provides one way to iterate over Sage integers as opposed to
Python int's. It also allows you to specify step sizes for such an
iteration.
HTH,
EDIT :
Just saw John Palmieri's suggestion, whi h amoiunts exactly to the same thing. Wups...
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.