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 (3)Basic Examples (3)

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]=
New in 7 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »