Range
Range[imax]
generates the list {1,2,…,imax}.
Range[imin,imax]
generates the list {imin,…,imax}.
Range[imin,imax,di]
uses step di.
Examples
open allclose allScope (6)
Applications (4)
Properties & Relations (2)
Possible Issues (3)
For some step sizes, Range may not include the upper limit given:
Even though the lower limit was exact, the inexact step makes the first element inexact:
Range accepts Quantity expressions as limits and steps:
For Quantity expressions, Precision is taken into account when determining whether elements are within the bounds of the limits:
Text
Wolfram Research (1988), Range, Wolfram Language function, https://reference.wolfram.com/language/ref/Range.html.
CMS
Wolfram Language. 1988. "Range." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Range.html.
APA
Wolfram Language. (1988). Range. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Range.html