DiscretePlot

DiscretePlot[expr,{n,nmax}]
generates a plot of the values of expr when n runs from to .

DiscretePlot[expr,{n,nmin,nmax}]
generates a plot of the values of expr when n runs from to .

DiscretePlot[expr,{n,nmin,nmax,dn}]
uses steps dn.

DiscretePlot[expr,{n,{n1,n2,}}]
uses the successive values , , .

DiscretePlot[{expr1,expr2,},]
plots the values of all the .

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Plot a sequence:

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

Plot several sequences:

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

Show a Riemann sum approximation to the area under a curve:

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

With bars to the left and right of the sample points:

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

Use legends to identify functions:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2008
(7.0)
| Updated in 2014
(10.0)