1 | initial version |
The command plot
samples 200 points in the specified interval.
For the combinatorial function in the question, only integer values matter.
The corresponding plotting function is list_plot
.
sage: g = lambda x: binomial(3, x) * binomial(3, 2 - x) / binomial(6, 2)
sage: glist = [g(x) for x in range(3)]
sage: gplot = list_plot(glist, ymin=0, size=30)
sage: gplot.show()
Launched png viewer for Graphics object consisting of 1 graphics primitive
2 | No.2 Revision |
The command plot
samples 200 points in the specified interval.
For the combinatorial function in the question, only integer values matter.
The corresponding plotting function is list_plot
.
sage: g = lambda x: binomial(3, x) * binomial(3, 2 - x) / binomial(6, 2)
sage: glist = [g(x) for x in range(3)]
sage: gplot = list_plot(glist, ymin=0, size=30)
sage: gplot.show()
Launched png viewer for Graphics object consisting of 1 graphics primitive