PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

gmp_binomial

(PHP 7 >= 7.3.0)

gmp_binomialCalculates 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 k is negative.