DiscretePlot

DiscretePlot[expr,{n,nmax}]

generates a plot of the values of expr when n runs from 1 to nmax.

DiscretePlot[expr,{n,nmin,nmax}]

generates a plot of the values of expr when n runs from nmin to nmax.

DiscretePlot[expr,{n,nmin,nmax,dn}]

uses steps dn.

DiscretePlot[expr,{n,{n1,n2,}}]

uses the successive values n1, n2, .

DiscretePlot[{expr1,expr2,},]

plots the values of all the expri.

Details and Options

Examples

open allclose all

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]=

Scope  (10)

Options  (63)

Applications  (4)

Properties & Relations  (4)

See Also

ListPlot  ListLinePlot  ListLogPlot  DateListPlot  ListStepPlot  Plot  Table

Introduced in 2008
(7.0)
| Updated in 2014
(10.0)