• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • 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.

    上篇:gmp_and()

    下篇:gmp_clrbit()