array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.gmp-binomial.php', 1 => 'gmp_binomial', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'GMP Functions', ), 'prev' => array ( 0 => 'function.gmp-and.php', 1 => 'gmp_and', ), 'next' => array ( 0 => 'function.gmp-clrbit.php', 1 => 'gmp_clrbit', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmp/functions/gmp-binomial.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.3.0, PHP 8)
gmp_binomial — Calculates binomial coefficient
Calculates the binomial coefficient C(n, k).
Returns the binomial coefficient C(n, k).
Throws ValueError if k
is negative.
Prior to PHP 8.0.0, E_WARNING
was issued instead.
Version | Description |
---|---|
8.0.0 |
This function no longer returns false on failure.
|