mglib

Personal IDL library for M. Galloy

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

analysis/

mg_choose.pro


Routines

top 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 May 14 15:07:14 2014
Lines: 4
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.