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.

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788