# IMSL_BINOMIALCOEF

The IMSL_BINOMIALCOEF function evaluates the binomial coefficient.

Note: This routine requires an IDL Analyst license. For more information, contact your Exelis VIS sales or technical support representative.

The binomial function is defined to be:

with n ≥ m ≥ 0. Also, n must not be so large that the function overflows.

## Examples

### Example 1

In this example:

is computed and printed.

n = 9

m = 5

ans = IMSL_BINOMIALCOEF(n, m)

PRINT, 'binomial coefficient =', ans

binomial coefficient = 126.000

## Syntax

Result = IMSL_BINOMIALCOEF(n, m [, /DOUBLE])

## Return Value

The binomial coefficient:

is returned.

## Arguments

### m

Second parameter of the binomial coefficient. Parameter m must be nonnegative.

### n

First parameter of the binomial coefficient. Parameter n must be nonnegative.

## Keywords

### DOUBLE

If present and nonzero, double precision is used.

## Version History

6.4 | Introduced

## See Also