Compute the binomial coefficients.
The binomial coefficient of the integers N and M is:
where "!" is the factorial function.
Dataplot computes this function using the BINOM function
from the SLATEC library. This routine was written by
W. Fullerton of LANL.
LET <y> = BINOMIAL(<n>,<m>)
where <n> is a non-negagive integer number, variable or
<m> is a non-negagive integer number, variable or
parameter (less than or equal to <n>);
<y> is a variable or a parameter (depending on what
<n> and <m> are) where the computed binomial
coefficient values are stored;
and where the <SUBSET/EXCEPT/FOR qualification> is optional.
LET A = BINOMIAL(10,6)
LET A = BINOMIAL(N,M)
LET Y = BINOMIAL(N,M) FOR M = 0 1 N
Library functions are distinguished from let subcommands
in the following ways.
- Functions enclose the input value in parenthesis. Let
subcommands use spaces.
- Functions can accept (and return) either parameters
(i.e., single values) or variables (i.e., an array of
values) while let subcommands are specific in which they
accept as input and what they return as output.
- Functions can accept expressions while let subcommands
do not. For example, the following is legal:
For let subcommands, you typically have to do something
like the following:
LET YTEMP = Y**2 + 8
LET A = SUM YTEMP
BINOM is a synonym for BINOMIAL.
= Compute the binomial cumulative distribution function.
= Compute the binomial probability mass function.
= Compute the binomial percent point function.
= Compute Bernoulli number or polynomial.
"Statistical Methods", Eigth Edition, Snedecor and Cochran,
1989, Iowa State University Press, page 112.
LET N = 20
TITLE BINOMIAL COEFFICIENTS: N = 20
PLOT BINOM(N,X) FOR X = 0 1 N
Date created: 6/5/2001
Last updated: 4/4/2003
Please email comments on this WWW page to