cvs: phpdoc-fr /reference/gmp/functions gmp-gcdext.xml
| From: | Yannick Torres | Date: | Tue, 29 Apr 2008 14:23:57 +0000 |
| Subject: | cvs: phpdoc-fr /reference/gmp/functions gmp-gcdext.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-5824@lists.php.net to get a copy of this message | ||
yannick Tue Apr 29 14:23:57 2008 UTC
Modified files:
/phpdoc-fr/reference/gmp/functions gmp-gcdext.xml
Log:
sync with EN
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml?r1=1.12&r2=1.13&diff_format=u
Index: phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml
diff -u phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.12
phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.13
--- phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.12 Sun Jul 22 18:10:52 2007
+++ phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml Tue Apr 29 14:23:57 2008
@@ -1,40 +1,73 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
-<!-- EN-Revision: 1.7 Maintainer: didou Status: ready -->
+<!-- $Revision: 1.13 $ -->
+<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
- <refentry xml:id="function.gmp-gcdext" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
- <refnamediv>
- <refname>gmp_gcdext</refname>
- <refpurpose>PGCD étendu</refpurpose>
- </refnamediv>
- <refsect1>
- &reftitle.description;
- <methodsynopsis>
- <type>array</type><methodname>gmp_gcdext</methodname>
-
<methodparam><type>resource</type><parameter>a</parameter></methodparam>
-
<methodparam><type>resource</type><parameter>b</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>gmp_gcdext</function> calcule les entiers g, s, et t, tels que
- <literal>a*s + b*t = g = gcd(a,b)</literal>, où gcd est le pgcd de
- <parameter>a</parameter> et <parameter>b</parameter>. La fonction
- retourne un tableau avec les index <literal>g</literal>,
<literal>s</literal>
- et <literal>t</literal>.
- </para>
- <para>
- Cette fonction peut être utilisée pour résoudre des équations diophantines
- linéaires à deux variables. Ces équations n'ont qu'une seule solution
- entière, et elles sont de la forme : <literal>a*x + b*y = c</literal>.
- Pour plus d'informations, voyez les pages
- <link xlink:href="&url.diophantine-equation;">"Diophantine
Equation"</link>
- sur MathWorld, en anglais.
- </para>
- <para>
- <example>
- <title>Résolution d'une équation Diophantine linéaire</title>
- <programlisting role="php">
+<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook"
xml:id="function.gmp-gcdext">
+ <refnamediv>
+ <refname>gmp_gcdext</refname>
+ <refpurpose>PGCD étendu</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>array</type><methodname>gmp_gcdext</methodname>
+
<methodparam><type>resource</type><parameter>a</parameter></methodparam>
+
<methodparam><type>resource</type><parameter>b</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Calcule les entiers g, s, et t, tels que
+ <literal>a*s + b*t = g = gcd(a,b)</literal>, où gcd est le pgcd de
+ <parameter>a</parameter> et <parameter>b</parameter>. La fonction
+ retourne un tableau avec les index <literal>g</literal>,
<literal>s</literal>
+ et <literal>t</literal>.
+ </para>
+ <para>
+ Cette fonction peut être utilisée pour résoudre des équations diophantines
+ linéaires à deux variables. Ces équations n'ont qu'une seule solution
+ entière, et elles sont de la forme : <literal>a*x + b*y = c</literal>.
+ Pour plus d'informations, voyez les pages
+ <link xlink:href="&url.diophantine-equation;">"Diophantine
Equation"</link>
+ sur MathWorld, en anglais.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>a</parameter></term>
+ <listitem>
+ &gmp.parameter;
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>b</parameter></term>
+ <listitem>
+ &gmp.parameter;
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Un tableau de nombres GMP.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Résolution d'une équation Diophantine linéaire</title>
+ <programlisting role="php">
<![CDATA[
+<?php
// Résolution de l'équation a*s + b*t = g
// où a = 12, b = 21, g = gcd(12, 21) = 3
$a = gmp_init(12);
@@ -55,12 +88,13 @@
}
// Résultat : Solution : 12*2 + 21*-1 = 3
+?>
]]>
- </programlisting>
- </example>
- </para>
- </refsect1>
- </refentry>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: