Mathematica 9 is now available

Range

Usage

Range[imax] 生成列表 1, 2, ... , imax .
Range[imin, imax] 生成列表  imin, ... , imax .Range[imin, imax, di] 使用步长 di生成列表.


Notes

• 例如: Range[4]LongRightArrow .
Range的参数不必是整数.
Rangeimin开始, 并连续以增量 di 递增直至结果大于imax.
Range[0, 1, .3]LongRightArrow .
Range[x, x+2]LongRightArrow .
Range 使用应用到单变量上的标准 Mathematica 迭代指定.
• 参见Mathematica 全书: 1.8.3节.
• 同时参见: Table, Interval, CharacterRange.
Further Examples

Here are lists of integers from  to  ,  to  , and  to  counting by threes.

In[1]:=  

Out[1]=

In[2]:=  

Out[2]=

In[3]:=  

Out[3]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.