Subdivide

Subdivide[n]

generates the list {0,1/n,2/n,,1}.

Subdivide[xmax,n]

generates the list of values obtained by subdividing the interval 0 to xmax into n equal parts.

Subdivide[xmin,xmax,n]

generates the list of values from subdividing the interval xmin to xmax.

Details

  • Subdivide[,n] generates a list of length n+1.

Examples

open allclose all

Basic Examples  (3)

Subdivide the unit interval into 10 equal parts:

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

Subdivide the interval 0 to 10 into 5 equal parts:

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

Subdivide the interval to 1 into 8 equal parts using machine precision:

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

Scope  (2)

Properties & Relations  (1)

See Also

Range  Table  FindDivisions  CirclePoints

Introduced in 2015
(10.1)