analysis/
mg_choose.pro
Routines
top mg_choose
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 |
Contact me if you have enhancement requests or bug fixes.