DiscretePlot
[expr, {x, $n_{max}$}]DiscretePlot
[expr, {x, $n_{min}$, $n_{max}$}]DiscretePlot
[expr, {x, $n_{min}$, $n_{max}$, dn}]DiscretePlot
[{$expr_1$, $expr_2$, ...}, ...]The number of primes for a number k:
DiscretePlot[PrimePi[k], {k, 1, 100}]
is about the same as Sqrt[k] * 2.5
:
DiscretePlot[2.5 Sqrt[k], {k, 100}]
Notice in the above that when the starting value, $n_{min}$, is 1, we can omit it.
A plot can contain several functions, using the same parameter, here x:
DiscretePlot[{Sin[Pi x/20], Cos[Pi x/20]}, {x, 0, 40}]
Compare with Plot
.