<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.gmp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.gmp-binomial.php',
    1 => 'gmp_binomial',
    2 => 'Calcule le coefficient binomial',
  ),
  'up' => 
  array (
    0 => 'ref.gmp.php',
    1 => 'Fonctions GMP',
  ),
  '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' => 'fr',
    'path' => 'reference/gmp/functions/gmp-binomial.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.gmp-binomial" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">gmp_binomial</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.3.0, PHP 8)</p><p class="refpurpose"><span class="refname">gmp_binomial</span> &mdash; <span class="dc-title">Calcule le coefficient binomial</span></p>

 </div>

  <div class="refsect1 description" id="refsect1-function.gmp-binomial-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>gmp_binomial</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.gmp.php" class="type GMP">GMP</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$n</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$k</code></span>): <span class="type"><a href="class.gmp.php" class="type GMP">GMP</a></span></div>

  <p class="para rdfs-comment">
   Calcule le coefficient binomial C(n, k).
  </p>
 </div>



  <div class="refsect1 parameters" id="refsect1-function.gmp-binomial-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">n</code></dt>
     <dd>
      <p class="para">
 Un objet <span class="classname"><a href="class.gmp.php" class="classname">GMP</a></span>, un <a href="language.types.integer.php" class="link">entier</a>,
 ou un <a href="language.types.string.php" class="link">chaîne de caractères</a> qui peut être interprété comme un nombre suivant la même logique
 que si la chaîne était utilisée dans <span class="function"><a href="function.gmp-init.php" class="function">gmp_init()</a></span> avec détection automatique de la base (c&#039;est-à-dire lorsque <code class="parameter">base</code> est égal à 0).
</p>
     </dd>
    
    
     <dt><code class="parameter">k</code></dt>
     <dd>
      <p class="para">

      </p>
     </dd>
    
   </dl>
  </p>
 </div>


  <div class="refsect1 returnvalues" id="refsect1-function.gmp-binomial-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne le coefficient binomial C(n, k).
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.gmp-binomial-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
   Lance une <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> si <code class="parameter">k</code> est négatif.
   Antérieur à PHP 8.0.0, <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> était émis à la place.
  </p>
 </div>

 <div class="refsect1 changelog" id="refsect1-function.gmp-binomial-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       Cette fonction ne retourne plus <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> en cas d&#039;échec.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


</div><?php manual_footer($setup); ?>