idllib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

analysis/

mg_choose.pro


top source mg_choose

result = mg_choose(m, n)

Calculate a mathematical combination.

Return value

long64

Parameters

m in required type=integer

number of items

n in required type=integer

size of combination

Examples

For example, the number of ways to choose 3 items from 5 items is:

IDL> print, mg_choose(5, 3) 10

File attributes

Modification date: Wed Sep 14 10:41:57 2011
Lines: 25
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.