Plot3D seems to be ignoring points

Consider the following function:

f[N_, i_, g_]:= PDF[BinomialDistribution[N, g], i]

The output of

Plot3D[f[100, i, g], {i, 0, 100}, {g, 0.1, 0.9}]

produces:

MAigx Plot3D seems to be ignoring points

By only looking at the 3D plot would incorrectly suggest that, say, f(100, 25, 0.2) = 0. However, the value of f at this point is approximately 0.04. My question is: how can I make the output of Plot3D more accurate for the function above?

Let’s block ads! (Why?)

Recent Questions – Mathematica Stack Exchange