BINOMIAL
Name:
Type:
Purpose:
Compute the binomial coefficients.
Description:
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.
Syntax:
LET <y> = BINOMIAL(<n>,<m>)
<SUBSET/EXCEPT/FOR qualification>
where <n> is a non-negagive integer number, variable or
parameter;
<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.
Examples:
LET A = BINOMIAL(10,6)
LET A = BINOMIAL(N,M)
LET Y = BINOMIAL(N,M) FOR M = 0 1 N
Note:
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
Default:
Synonyms:
BINOM is a synonym for BINOMIAL.
Related Commands:
BINCDF
|
= Compute the binomial cumulative distribution function.
|
BINPDF
|
= Compute the binomial probability mass function.
|
BINPPF
|
= Compute the binomial percent point function.
|
BN
|
= Compute Bernoulli number or polynomial.
|
Reference:
"Statistical Methods", Eigth Edition, Snedecor and Cochran,
1989, Iowa State University Press, page 112.
Applications:
Implementation Date:
Program:
LET N = 20
TITLE BINOMIAL COEFFICIENTS: N = 20
LINE BLANK
SPIKE ON
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
alan.heckert@nist.gov.
|