|
Range
Range[imax] generates the list 1, 2, ... , imax .
Range[imin, imax] generates the list imin, ... , imax . Range[imin, imax, di] uses step di.
Example: Range[4]  .
The arguments to Range need not be integers.
Range starts from imin, and successively adds increments of di until the result is greater than imax.
Range[0, 1, .3]  .
Range[x, x+2]  .
Range uses the standard Mathematica iteration specification, as applied to a single variable.
See The Mathematica Book: Section 1.8.3.
See also: Table, Interval, CharacterRange.
Further Examples
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | |