This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Construction /


FilledSmallSquare Range[imax] generates the list 1, 2, ... , imax.

FilledSmallSquare Range[imin, imax] generates the list imin, ... , imax. Range[imin, imax, di] uses step di.

FilledSmallSquare Example: Range[4] LongRightArrow.

FilledSmallSquare The arguments to Range need not be integers.

FilledSmallSquare Range starts from imin, and successively adds increments of di until the result is greater than imax.

FilledSmallSquare Range[0, 1, .3] LongRightArrow.

FilledSmallSquare Range[x, x+2] LongRightArrow.

FilledSmallSquare Range uses the standard Mathematica iteration specification, as applied to a single variable.

FilledSmallSquare See Section 1.8.3.

FilledSmallSquare See also: Table, Interval, CharacterRange.

FilledSmallSquare New in Version 1.

Further Examples