php[world] 2019 — 25 years of PHP

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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top