﻿功能: 求组合数学函数值(Combination)

格式: BgCombination(n,m)

原理:
$$
\mathbf{BgCombination}(n,m)=\dfrac{n!}{m!(n-m)!},n>m
$$

例子:

//问题,有2000个不同标号的球,现在从中选择50个出来,请问有多少种选法啊?

n=BgCombination(2000,50)//执行本命令对上面的问题进行求解有
n =
"19961695734279236211032903597262781251004330223561192760088208846391036329722665786642280715824928160"//即有n种选法

// By 2011/11/15