[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/gmp/_functions/gmp-binomial.xml_versions.xml?=
From:       Christoph_Michael_Becker <cmb () php ! net>
Date:       2018-09-29 16:51:57
Message-ID: svn-cmb-1538239917-345730-598751651 () svn ! php ! net
[Download RAW message or body]

cmb                                      Sat, 29 Sep 2018 16:51:57 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=345730

Log:
Document new gmp_binomial() function

Based on a patch provided by an anonymous user.

Changed paths:
    A   phpdoc/en/trunk/reference/gmp/functions/gmp-binomial.xml
    U   phpdoc/en/trunk/reference/gmp/versions.xml

Added: phpdoc/en/trunk/reference/gmp/functions/gmp-binomial.xml
===================================================================
--- phpdoc/en/trunk/reference/gmp/functions/gmp-binomial.xml	                        \
                (rev 0)
+++ phpdoc/en/trunk/reference/gmp/functions/gmp-binomial.xml	2018-09-29 16:51:57 UTC \
(rev 345730) @@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+
+<refentry xml:id="function.gmp-binomial" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv>
+  <refname>gmp_binomial</refname>
+  <refpurpose>Calculates binomial coefficient</refpurpose>
+ </refnamediv>
+
+  <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>GMP</type><methodname>gmp_binomial</methodname>
+   <methodparam><type>mixed</type><parameter>n</parameter></methodparam>
+   <methodparam><type>int</type><parameter>k</parameter></methodparam>
+   </methodsynopsis>
+  <para>
+   Calculates the binomial coefficient C(n, k).
+  </para>
+ </refsect1>
+
+
+  <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>n</parameter></term>
+     <listitem>
+      &gmp.parameter;
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>k</parameter></term>
+     <listitem>
+      <para>
+
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+
+  <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Returns the binomial coefficient C(n, k), &return.falseforfailure;.
+  </para>
+ </refsect1>
+
+
+ <refsect1 role="errors">
+  &reftitle.errors;
+  <para>
+   Issues E_WARNING if <parameter>k</parameter> is negative.
+  </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->


Property changes on: phpdoc/en/trunk/reference/gmp/functions/gmp-binomial.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy \
HeadURL URL \ No newline at end of property
Modified: phpdoc/en/trunk/reference/gmp/versions.xml
===================================================================
--- phpdoc/en/trunk/reference/gmp/versions.xml	2018-09-29 16:20:46 UTC (rev 345729)
+++ phpdoc/en/trunk/reference/gmp/versions.xml	2018-09-29 16:51:57 UTC (rev 345730)
@@ -8,6 +8,7 @@
  <function name='gmp_abs' from='PHP 4 &gt;= 4.0.4, PHP 5, PHP 7'/>
  <function name='gmp_add' from='PHP 4 &gt;= 4.0.4, PHP 5, PHP 7'/>
  <function name='gmp_and' from='PHP 4 &gt;= 4.0.4, PHP 5, PHP 7'/>
+ <function name='gmp_binomial' from='PHP 7 &gt;= 7.3.0'/>
  <function name='gmp_clrbit' from='PHP 4 &gt;= 4.0.4, PHP 5, PHP 7'/>
  <function name='gmp_cmp' from='PHP 4 &gt;= 4.0.4, PHP 5, PHP 7'/>
  <function name='gmp_com' from='PHP 4 &gt;= 4.0.4, PHP 5, PHP 7'/>



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic