Range

Range[imax]

generates the list {1,2,,imax}.

Range[imin,imax]

generates the list {imin,,imax}.

Range[imin,imax,di]

uses step di.

Details

  • 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 uses the standard Wolfram Language iteration specification, as applied to a single variable.
  • Range has attribute Listable.

Examples

open allclose all

Basic Examples  (3)

In[1]:=
Click for copyable input
Out[1]=
In[1]:=
Click for copyable input
Out[1]=
In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Generalizations & Extensions  (2)

Applications  (4)

Properties & Relations  (2)

Possible Issues  (3)

Neat Examples  (1)

See Also

Table  Subdivide  ConstantArray  Interval  PowerRange  CharacterRange  FindDivisions  Clip

Tutorials

Introduced in 1988
(1.0)