s = Sum[Binomial[100, k], {k, 0, 100}];
slist = Table[Binomial[100, k], {k, 0, 100}];
labellist = Table[k, {k, 0, 100, 25}];
BarChart[N[slist/s], Ticks -> {labellist, Automatic}]
n = 100;
s = 2^n;
slist = Table[Binomial[n, k]/s,
{k, 0, n}];
Total[slist]
1
Show[{BarChart[slist,
Ticks -> {
Table[{k + 1/2, k}, {k, n/10, n, n/10}],
Automatic},
BarSpacing -> 0,
ImageSize -> 400],
Plot[Interpolation[
Thread[{Range[0, n], slist}]][x - 1/2],
{x, 1/2, n + 1/2},
PlotRange -> All,
PlotStyle -> Directive[Red, Thick]]}]
Bob Hanlon
---- rs_poetic <schantz...@cox.net> wrote:
=============
s = Sum[Binomial[100, k], {k, 0, 100}];
slist = Table[Binomial[100, k], {k, 0, 100}];
labellist = Table[k, {k, 0, 100, 25}];
i = 0;
BarChart[N[slist/s],
LabelingFunction -> (If[Mod[++i, 25] == 0, Placed[i, Below], ""] &)]
Daniel
Thanks! I appreciate both solution and the extra material about
interpolation.
RS