gmp_binomial()
(PHP 7 >= 7.3.0)
Calculates binomial coefficient
说明
gmp_binomial(mixed $n,int $k): GMP
Calculates the binomial coefficient C(n, k).
参数
- $n
可以是一个 GMP数据resouce,或一个可以转换为数值的字符串。
- $k
返回值
Returns the binomial coefficient C(n, k),或者在失败时返回FALSE
.
错误/异常
Issues E_WARNING if$kis negative.