Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

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.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (3)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]=
Introduced in 2015
(10.1)