cvs: phpdoc-fr /reference/gmp configure.xml constants.xml reference.xml /reference/gmp/functions gmp-com.xml gmp-div-q.xml gmp-div-qr.xml
gmp-gcdext.xml gmp-init.xml gmp-intval.xml gmp-jacobi.xml gmp-perfect-square.xml gmp-setbit.xml gmp-strval.xml
| From: | Damien Seguy | Date: | Sat, 05 Jul 2003 14:52:46 +0000 |
| Subject: | cvs: phpdoc-fr /reference/gmp configure.xml constants.xml reference.xml /reference/gmp/functions gmp-com.xml gmp-div-q.xml gmp-div-qr.xml gmp-gcdext.xml gmp-init.xml gmp-intval.xml gmp-jacobi.xml gmp-perfect-square.xml gmp-setbit.xml gmp-strval.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-594@lists.php.net to get a copy of this message | ||
dams Sat Jul 5 10:52:46 2003 EDT
Added files:
/phpdoc-fr/reference/gmp configure.xml constants.xml
/phpdoc-fr/reference/gmp/functions gmp-com.xml
Modified files:
/phpdoc-fr/reference/gmp reference.xml
/phpdoc-fr/reference/gmp/functions gmp-div-q.xml gmp-div-qr.xml
gmp-gcdext.xml gmp-init.xml
gmp-intval.xml gmp-jacobi.xml
gmp-perfect-square.xml
gmp-setbit.xml gmp-strval.xml
Log:
keep up with en tree
Index: phpdoc-fr/reference/gmp/reference.xml diff -u phpdoc-fr/reference/gmp/reference.xml:1.2 phpdoc-fr/reference/gmp/reference.xml:1.3 --- phpdoc-fr/reference/gmp/reference.xml:1.2 Mon Apr 15 20:53:40 2002 +++ phpdoc-fr/reference/gmp/reference.xml Sat Jul 5 10:52:45 2003 @@ -1,64 +1,105 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.gmp"> <title>GMP</title> <titleabbrev>GMP</titleabbrev> - <partintro> - <simpara> - Ces fonctions vous permettent de travailler avec des nombres de taille - arbitraire, en utilisant la librairie GNU <acronym>MP</acronym>. - Pour pouvoir y accéder, vous devez compiler PHP avec le support - <acronym>GMP</acronym> en utilisant l'option - <link linkend="install.configure.gmp"><option role="configure">--with-gmp</option></link>. - </simpara> - <simpara> + + <partintro> + <section id="gmp.intro"> + &reftitle.intro; + <simpara> + Ces fonctions vous permettent de travailler avec des nombres de taille + arbitraire, en utilisant la librairie GNU <acronym>MP</acronym>. + </simpara> + <simpara> + Ces fonctions ont été ajoutées en PHP 4.0.4. + </simpara> + <note> + <para> + La majorité des fonctions GMP acceptent des nombres GMP comme + arguments, définis ci-dessous comme <literal>resource</literal>. + Cependant, la plupart de ces fonctions acceptent aussi des nombres et des + chaînes à partir du moment où on peut les convertir + en nombre. Si une fonction utilisant les entiers est plus rapide, elle + sera automatiquement appelée si les arguments fournis sont des + entiers. Cela se fait de manière transparente : vous pouvez + donc utiliser des entiers avec les fonctions GMP sans perte de + vitesse. Voir aussi <function>gmp_init</function>. + </para> + </note> + <warning> + <simpara> + Si vous voulez explicitement spécifier un entier de grande taille, + spécifiez le sous forme de chaîne. Si vous ne le faite pas, PHP va + interpréter votre entier, et le transformer en une représentation + interne, qui vous fera surement perdre de la précision. + </simpara> + </warning> + ¬e.no-windows.extension; + </section> + + <section id="gmp.requirements"> + &reftitle.required; + <para> Vous pouvez télécharger <acronym>GMP</acronym> sur le site de <ulink url="&url.gmp;">&url.gmp;</ulink>. Ce site propose aussi un manuel <acronym>GMP</acronym>. - </simpara> - <simpara> - Vous devez utiliser GMP version 2 ou plus récent pour utiliser ces + </para> + <simpara> + Vous devez utiliser <acronym>GMP</acronym> version 2 ou plus récent pour utiliser ces fonctions. Certaines d'entre elles peuvent requérir une version encore - plus récente de GMP. - </simpara> - <simpara> - Ces fonctions ont été ajoutées en PHP 4.0.4. - </simpara> - <note> - <para> - La majorité des fonctions GMP acceptent des nombres GMP comme - arguments, définis ci-dessous comme <literal>resource</literal>. - Cependant, - la plupart de ces fonctions acceptent aussi des nombres et des chaînes - à partir du moment où on peut les convertir en nombre. Si - une fonction utilisant les entiers est plus rapide, elle sera - automatiquement appelée si les arguments fournis sont des entiers. - Cela se fait de manière transparente : vous pouvez donc utiliser des - entiers avec les fonctions GMP sans perte de vitesse. - </para> - <para> - Voir aussi - <function>gmp_init</function>. - </para> - </note> - <para> - <example> - <title>Factorielle avec GMP</title> - <programlisting role="php"> -<?php + plus récente de <acronym>GMP</acronym>. + </simpara> + </section> + +&reference.gmp.configure; + + <section id="gmp.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="gmp.resources"> + &reftitle.resources; + &no.resource; + </section> + + &reference.gmp.constants; + + <section id="gmp.examples"> + &reftitle.examples; + <para> + <example> + <title>Factorielle avec GMP</title> + <programlisting role="php"> +<![CDATA[ +<?php function fact($x) { - if($x <= 1) + if($x <= 1) return 1; else return gmp_mul($x,fact($x-1)); } print gmp_strval(fact(1000))."\n"; -?> - </programlisting> - </example> - Cet exemple va calculer factorielle de 1000 (un plutôt - grand nombre) très vite. - </para> +?> +]]> + </programlisting> + </example> + </para> + <para> + Cet exemple va calculer factorielle de 1000 (un plutôt + grand nombre) très vite. + </para> + </section> + + <section id="gmp.seealso"> + &reftitle.seealso; + <para> + D'autres fonctions mathématiques sont disponibles avec les extensions + <link linkend="ref.bc">Nombres de grande taille BCMath</link> + et <link linkend="ref.math">Mathématiques</link>. + </para> + </section> </partintro> &reference.gmp.functions; Index: phpdoc-fr/reference/gmp/functions/gmp-div-q.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.1 Sun Apr 14 20:29:04 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-div-q.xml Sat Jul 5 10:52:46 2003 @@ -22,18 +22,18 @@ <itemizedlist> <listitem> <simpara> - <parameter>GMP_ROUND_ZERO</parameter>: Le résultat est tronqué vers 0. + <parameter>gmp_round_zero</parameter>: Le résultat est tronqué vers 0. </simpara> </listitem> <listitem> <simpara> - <parameter>GMP_ROUND_PLUSINF</parameter>: Le résultat est tronqué vers + <parameter>gmp_round_plusinf</parameter>: Le résultat est tronqué vers <literal>+infinity</literal> </simpara> </listitem> <listitem> <simpara> - <parameter>GMP_ROUND_MINUSINF</parameter>: Le résultat est tronqué vers + <parameter>gmp_round_minusinf</parameter>: Le résultat est tronqué vers <literal>-infinity</literal> </simpara> </listitem> Index: phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml:1.1 Sun Apr 14 20:29:05 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml Sat Jul 5 10:52:46 2003 @@ -8,12 +8,12 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>gmp_div_qr</methodname> - <methodparam><type>resource</type><parameter>n</parameter></methodparam> - <methodparam><type>resource</type><parameter>d</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>round</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>array</type><methodname>gmp_div_qr</methodname> + <methodparam><type>resource</type><parameter>n</parameter></methodparam> + <methodparam><type>resource</type><parameter>d</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>round</parameter></methodparam> + </methodsynopsis> <para> <function>gmp_div_qr</function> divise <parameter>n</parameter> par <parameter>d</parameter> et retourne un tableau, dont le premier élément @@ -28,11 +28,14 @@ <example> <title>Division de nombres GMP</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - $res = gmp_div_qr($a, "0xDEFE75"); - printf("Le résultat est: q - %s, r - %s", gmp_strval($res[0]), gmp_strval($res[1])); -?> +<![CDATA[ +<?php + $a = gmp_init ("0x41682179fbf5"); + $res = gmp_div_qr ($a, "0xDEFE75"); + printf("Le résultat est : q - %s, r - %s", + gmp_strval($res[0]), gmp_strval($res[1])); +?> +]]> </programlisting> </example> </para> @@ -43,24 +46,23 @@ </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:"../../../../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 ---> +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml Sat Jul 5 10:52:46 2003 @@ -8,37 +8,80 @@ </refnamediv> <refsect1> <title>Description</title> - <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> + <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 éléments g, s et t. + retourne un tableau avec les index <literal>g</literal>, <literal>s</literal> + et <literal>t</literal>. </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:"../../../../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 ---> + <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 : + <informalequation> + <alt>a*x + b*y = c</alt> + <graphic fileref="images/diophantine-equation.png"/> + </informalequation> + Pour plus d'informations, voyez les pages pages + <ulink url="&url.diophantine-equation;">"Diophantine Equation"</ulink> + sur MathWorld, en anglais. + </para> + <para> + <example> + <title>Résolution d'une équation Diophantine linéaire</title> + <programlisting role="php"> +<![CDATA[ +// Résolution de l'équation a*s + b*t = g +// où a = 12, b = 21, g = gcd(12, 21) = 3 +$a = gmp_init(12); +$b = gmp_init(21); +$g = gmp_gcd($a, $b); +$r = gmp_gcdext($a, $b); + +$check_gcd = (gmp_strval($g) == gmp_strval($r['g'])); +$eq_res = gmp_add(gmp_mul($a, $r['s']), gmp_mul($b, $r['t'])); +$check_res = (gmp_strval($g) == gmp_strval($eq_res)); + +if ($check_gcd && $check_res) { + $fmt = "Solution: %d*%d + %d*%d = %d\n"; + printf($fmt, gmp_strval($a), gmp_strval($r['s']), gmp_strval($b), + gmp_strval($r['t']), gmp_strval($r['g'])); +} else { + echo "Erreur lors de la résolution de l'équation\n"; +} + +// Résultat : Solution : 12*2 + 21*-1 = 3 +]]> + </programlisting> + </example> + </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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-init.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-init.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-init.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-init.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-init.xml Sat Jul 5 10:52:46 2003 @@ -8,11 +8,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>gmp_init</methodname> - <methodparam><type>mixed</type><parameter>number</parameter></methodparam> - </methodsynopsis> - <para> + <methodsynopsis> + <type>resource</type><methodname>gmp_init</methodname> + <methodparam><type>mixed</type><parameter>number</parameter></methodparam> + </methodsynopsis> + <para> <function>gmp_init</function> crée un nombre GMP, à partir d'un entier ou d'une chaîne. Les chaînes peuvent être en décimal ou en hexadécimal. Dans ce dernier cas, la @@ -22,10 +22,12 @@ <example> <title>Création d'un nombre GMP</title> <programlisting role="php"> -<?php - $a = gmp_init(123456); - $b = gmp_init("0xFFFFDEBACDFEDF7200"); -?> +<![CDATA[ +<?php + $a = gmp_init (123456); + $b = gmp_init ("0xFFFFDEBACDFEDF7200"); +?> +]]> </programlisting> </example> </para> @@ -50,24 +52,23 @@ </note> </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:"../../../../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 ---> +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-intval.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-intval.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-intval.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-intval.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-intval.xml Sat Jul 5 10:52:46 2003 @@ -4,7 +4,7 @@ <refentry id="function.gmp-intval"> <refnamediv> <refname>gmp_intval</refname> - <refpurpose>Convertit un nombre GMP en entier.</refpurpose> + <refpurpose>Convertit un nombre GMP en entier</refpurpose> </refnamediv> <refsect1> <title>Description</title> Index: phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml Sat Jul 5 10:52:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./fr/functions/gmp.xml, last change in rev 1.10 --> -<!-- last change to 'gmp-jacobi' in en/ tree in rev 1.1 --> +<!-- splitted from ./fr/functions/gmp.xml, last change in rev 1.10 --> +<!-- last change to 'gmp-jacobi' in en/ tree in rev 1.1 --> <refentry id="function.gmp-jacobi"> <refnamediv> <refname>gmp_jacobi</refname> @@ -8,39 +8,37 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>gmp_jacobi</methodname> - <methodparam><type>resource</type><parameter>a</parameter></methodparam> - <methodparam><type>resource</type><parameter>p</parameter></methodparam> - </methodsynopsis> - <para> + <methodsynopsis> + <type>int</type><methodname>gmp_jacobi</methodname> + <methodparam><type>resource</type><parameter>a</parameter></methodparam> + <methodparam><type>resource</type><parameter>p</parameter></methodparam> + </methodsynopsis> + <para> <function>gmp_jacobi</function> calcule le - <ulink - url="http://www.utm.edu/research/primes/glossary/JacobiSymbol.html"> - symbole de Jacobi</ulink> de <parameter>a</parameter> et + <ulink url="&url.jacobi;">symbole de Jacobi</ulink> de <parameter>a</parameter> et <parameter>p</parameter>. <parameter>p</parameter> doit être positif et impair. </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:"../../../../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 ---> + +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml:1.1 Sun Apr 14 20:29:08 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml Sat Jul 5 10:52:46 2003 @@ -9,7 +9,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>gmp_perfect_square</methodname> + <type>bool</type><methodname>gmp_perfect_square</methodname> <methodparam><type>resource</type><parameter>a</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/gmp/functions/gmp-setbit.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-setbit.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-setbit.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-setbit.xml:1.1 Sun Apr 14 20:29:11 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-setbit.xml Sat Jul 5 10:52:46 2003 @@ -12,7 +12,7 @@ <type>resource</type><methodname>gmp_setbit</methodname> <methodparam><type>resource</type><parameter>&a</parameter></methodparam> <methodparam><type>int</type><parameter>index</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter>set_clear</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>set_clear</parameter></methodparam> </methodsynopsis> <para> <function>gmp_setbit</function> modifie le bit <parameter>index</parameter> Index: phpdoc-fr/reference/gmp/functions/gmp-strval.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-strval.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-strval.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-strval.xml:1.1 Sun Apr 14 20:29:11 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-strval.xml Sat Jul 5 10:52:46 2003 @@ -8,12 +8,12 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>gmp_strval</methodname> - <methodparam><type>resource</type><parameter>gmpnumber</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>base</parameter></methodparam> - </methodsynopsis> - <para> + <methodsynopsis> + <type>string</type><methodname>gmp_strval</methodname> + <methodparam><type>resource</type><parameter>gmpnumber</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>base</parameter></methodparam> + </methodsynopsis> + <para> <function>gmp_strval</function> convertit un nombre GMP en chaîne de caractères, dans la base <parameter>base</parameter>. La base par défaut est 10. Les valeurs possibles vont de 2 à 36. @@ -22,33 +22,36 @@ <example> <title>Conversion d'un nombre GMP en chaîne</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - printf("Décimal: %s, base 36: %s", gmp_strval($a), gmp_strval($a,36)); -?> +<![CDATA[ +<?php + $a = gmp_init("0x41682179fbf5"); + printf("Décimal: %s, base 36: %s", + gmp_strval($a), gmp_strval($a,36)); +?> +]]> </programlisting> </example> </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:"../../../../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 ---> + +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/configure.xml +++ phpdoc-fr/reference/gmp/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="gmp.installation"> &reftitle.install; <para> Pour pouvoir y accéder, vous devez compiler PHP avec le support <acronym>GMP</acronym> en utilisant l'option <option role="configure">--with-gmp</option>. </para> </section> <!-- 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:"../../../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 --> Index: phpdoc-fr/reference/gmp/constants.xml +++ phpdoc-fr/reference/gmp/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="gmp.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> <constant>GMP_ROUND_ZERO</constant> (&integer;) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>GMP_ROUND_PLUSINF</constant> (&integer;) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>GMP_ROUND_MINUSINF</constant> (&integer;) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> </variablelist> </section> <!-- 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:"../../../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 --> Index: phpdoc-fr/reference/gmp/functions/gmp-com.xml +++ phpdoc-fr/reference/gmp/functions/gmp-com.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/gmp.xml, last change in rev 1.20 --> <refentry id="function.gmp-com"> <refnamediv> <refname>gmp_com</refname> <refpurpose>Calcule le complémentaire d'un nombre</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>resource</type><methodname>gmp_com</methodname> <methodparam><type>resource</type><parameter>a</parameter></methodparam> </methodsynopsis> <para> &warn.undocumented.func; </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:"../../../../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 -->
Index: phpdoc-fr/reference/gmp/reference.xml diff -u phpdoc-fr/reference/gmp/reference.xml:1.2 phpdoc-fr/reference/gmp/reference.xml:1.3 --- phpdoc-fr/reference/gmp/reference.xml:1.2 Mon Apr 15 20:53:40 2002 +++ phpdoc-fr/reference/gmp/reference.xml Sat Jul 5 10:52:45 2003 @@ -1,64 +1,105 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.gmp"> <title>GMP</title> <titleabbrev>GMP</titleabbrev> - <partintro> - <simpara> - Ces fonctions vous permettent de travailler avec des nombres de taille - arbitraire, en utilisant la librairie GNU <acronym>MP</acronym>. - Pour pouvoir y accéder, vous devez compiler PHP avec le support - <acronym>GMP</acronym> en utilisant l'option - <link linkend="install.configure.gmp"><option role="configure">--with-gmp</option></link>. - </simpara> - <simpara> + + <partintro> + <section id="gmp.intro"> + &reftitle.intro; + <simpara> + Ces fonctions vous permettent de travailler avec des nombres de taille + arbitraire, en utilisant la librairie GNU <acronym>MP</acronym>. + </simpara> + <simpara> + Ces fonctions ont été ajoutées en PHP 4.0.4. + </simpara> + <note> + <para> + La majorité des fonctions GMP acceptent des nombres GMP comme + arguments, définis ci-dessous comme <literal>resource</literal>. + Cependant, la plupart de ces fonctions acceptent aussi des nombres et des + chaînes à partir du moment où on peut les convertir + en nombre. Si une fonction utilisant les entiers est plus rapide, elle + sera automatiquement appelée si les arguments fournis sont des + entiers. Cela se fait de manière transparente : vous pouvez + donc utiliser des entiers avec les fonctions GMP sans perte de + vitesse. Voir aussi <function>gmp_init</function>. + </para> + </note> + <warning> + <simpara> + Si vous voulez explicitement spécifier un entier de grande taille, + spécifiez le sous forme de chaîne. Si vous ne le faite pas, PHP va + interpréter votre entier, et le transformer en une représentation + interne, qui vous fera surement perdre de la précision. + </simpara> + </warning> + ¬e.no-windows.extension; + </section> + + <section id="gmp.requirements"> + &reftitle.required; + <para> Vous pouvez télécharger <acronym>GMP</acronym> sur le site de <ulink url="&url.gmp;">&url.gmp;</ulink>. Ce site propose aussi un manuel <acronym>GMP</acronym>. - </simpara> - <simpara> - Vous devez utiliser GMP version 2 ou plus récent pour utiliser ces + </para> + <simpara> + Vous devez utiliser <acronym>GMP</acronym> version 2 ou plus récent pour utiliser ces fonctions. Certaines d'entre elles peuvent requérir une version encore - plus récente de GMP. - </simpara> - <simpara> - Ces fonctions ont été ajoutées en PHP 4.0.4. - </simpara> - <note> - <para> - La majorité des fonctions GMP acceptent des nombres GMP comme - arguments, définis ci-dessous comme <literal>resource</literal>. - Cependant, - la plupart de ces fonctions acceptent aussi des nombres et des chaînes - à partir du moment où on peut les convertir en nombre. Si - une fonction utilisant les entiers est plus rapide, elle sera - automatiquement appelée si les arguments fournis sont des entiers. - Cela se fait de manière transparente : vous pouvez donc utiliser des - entiers avec les fonctions GMP sans perte de vitesse. - </para> - <para> - Voir aussi - <function>gmp_init</function>. - </para> - </note> - <para> - <example> - <title>Factorielle avec GMP</title> - <programlisting role="php"> -<?php + plus récente de <acronym>GMP</acronym>. + </simpara> + </section> + +&reference.gmp.configure; + + <section id="gmp.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="gmp.resources"> + &reftitle.resources; + &no.resource; + </section> + + &reference.gmp.constants; + + <section id="gmp.examples"> + &reftitle.examples; + <para> + <example> + <title>Factorielle avec GMP</title> + <programlisting role="php"> +<![CDATA[ +<?php function fact($x) { - if($x <= 1) + if($x <= 1) return 1; else return gmp_mul($x,fact($x-1)); } print gmp_strval(fact(1000))."\n"; -?> - </programlisting> - </example> - Cet exemple va calculer factorielle de 1000 (un plutôt - grand nombre) très vite. - </para> +?> +]]> + </programlisting> + </example> + </para> + <para> + Cet exemple va calculer factorielle de 1000 (un plutôt + grand nombre) très vite. + </para> + </section> + + <section id="gmp.seealso"> + &reftitle.seealso; + <para> + D'autres fonctions mathématiques sont disponibles avec les extensions + <link linkend="ref.bc">Nombres de grande taille BCMath</link> + et <link linkend="ref.math">Mathématiques</link>. + </para> + </section> </partintro> &reference.gmp.functions; Index: phpdoc-fr/reference/gmp/functions/gmp-div-q.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.1 Sun Apr 14 20:29:04 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-div-q.xml Sat Jul 5 10:52:46 2003 @@ -22,18 +22,18 @@ <itemizedlist> <listitem> <simpara> - <parameter>GMP_ROUND_ZERO</parameter>: Le résultat est tronqué vers 0. + <parameter>gmp_round_zero</parameter>: Le résultat est tronqué vers 0. </simpara> </listitem> <listitem> <simpara> - <parameter>GMP_ROUND_PLUSINF</parameter>: Le résultat est tronqué vers + <parameter>gmp_round_plusinf</parameter>: Le résultat est tronqué vers <literal>+infinity</literal> </simpara> </listitem> <listitem> <simpara> - <parameter>GMP_ROUND_MINUSINF</parameter>: Le résultat est tronqué vers + <parameter>gmp_round_minusinf</parameter>: Le résultat est tronqué vers <literal>-infinity</literal> </simpara> </listitem> Index: phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml:1.1 Sun Apr 14 20:29:05 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-div-qr.xml Sat Jul 5 10:52:46 2003 @@ -8,12 +8,12 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>gmp_div_qr</methodname> - <methodparam><type>resource</type><parameter>n</parameter></methodparam> - <methodparam><type>resource</type><parameter>d</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>round</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>array</type><methodname>gmp_div_qr</methodname> + <methodparam><type>resource</type><parameter>n</parameter></methodparam> + <methodparam><type>resource</type><parameter>d</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>round</parameter></methodparam> + </methodsynopsis> <para> <function>gmp_div_qr</function> divise <parameter>n</parameter> par <parameter>d</parameter> et retourne un tableau, dont le premier élément @@ -28,11 +28,14 @@ <example> <title>Division de nombres GMP</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - $res = gmp_div_qr($a, "0xDEFE75"); - printf("Le résultat est: q - %s, r - %s", gmp_strval($res[0]), gmp_strval($res[1])); -?> +<![CDATA[ +<?php + $a = gmp_init ("0x41682179fbf5"); + $res = gmp_div_qr ($a, "0xDEFE75"); + printf("Le résultat est : q - %s, r - %s", + gmp_strval($res[0]), gmp_strval($res[1])); +?> +]]> </programlisting> </example> </para> @@ -43,24 +46,23 @@ </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:"../../../../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 ---> +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-gcdext.xml Sat Jul 5 10:52:46 2003 @@ -8,37 +8,80 @@ </refnamediv> <refsect1> <title>Description</title> - <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> + <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 éléments g, s et t. + retourne un tableau avec les index <literal>g</literal>, <literal>s</literal> + et <literal>t</literal>. </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:"../../../../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 ---> + <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 : + <informalequation> + <alt>a*x + b*y = c</alt> + <graphic fileref="images/diophantine-equation.png"/> + </informalequation> + Pour plus d'informations, voyez les pages pages + <ulink url="&url.diophantine-equation;">"Diophantine Equation"</ulink> + sur MathWorld, en anglais. + </para> + <para> + <example> + <title>Résolution d'une équation Diophantine linéaire</title> + <programlisting role="php"> +<![CDATA[ +// Résolution de l'équation a*s + b*t = g +// où a = 12, b = 21, g = gcd(12, 21) = 3 +$a = gmp_init(12); +$b = gmp_init(21); +$g = gmp_gcd($a, $b); +$r = gmp_gcdext($a, $b); + +$check_gcd = (gmp_strval($g) == gmp_strval($r['g'])); +$eq_res = gmp_add(gmp_mul($a, $r['s']), gmp_mul($b, $r['t'])); +$check_res = (gmp_strval($g) == gmp_strval($eq_res)); + +if ($check_gcd && $check_res) { + $fmt = "Solution: %d*%d + %d*%d = %d\n"; + printf($fmt, gmp_strval($a), gmp_strval($r['s']), gmp_strval($b), + gmp_strval($r['t']), gmp_strval($r['g'])); +} else { + echo "Erreur lors de la résolution de l'équation\n"; +} + +// Résultat : Solution : 12*2 + 21*-1 = 3 +]]> + </programlisting> + </example> + </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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-init.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-init.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-init.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-init.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-init.xml Sat Jul 5 10:52:46 2003 @@ -8,11 +8,11 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>resource</type><methodname>gmp_init</methodname> - <methodparam><type>mixed</type><parameter>number</parameter></methodparam> - </methodsynopsis> - <para> + <methodsynopsis> + <type>resource</type><methodname>gmp_init</methodname> + <methodparam><type>mixed</type><parameter>number</parameter></methodparam> + </methodsynopsis> + <para> <function>gmp_init</function> crée un nombre GMP, à partir d'un entier ou d'une chaîne. Les chaînes peuvent être en décimal ou en hexadécimal. Dans ce dernier cas, la @@ -22,10 +22,12 @@ <example> <title>Création d'un nombre GMP</title> <programlisting role="php"> -<?php - $a = gmp_init(123456); - $b = gmp_init("0xFFFFDEBACDFEDF7200"); -?> +<![CDATA[ +<?php + $a = gmp_init (123456); + $b = gmp_init ("0xFFFFDEBACDFEDF7200"); +?> +]]> </programlisting> </example> </para> @@ -50,24 +52,23 @@ </note> </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:"../../../../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 ---> +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-intval.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-intval.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-intval.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-intval.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-intval.xml Sat Jul 5 10:52:46 2003 @@ -4,7 +4,7 @@ <refentry id="function.gmp-intval"> <refnamediv> <refname>gmp_intval</refname> - <refpurpose>Convertit un nombre GMP en entier.</refpurpose> + <refpurpose>Convertit un nombre GMP en entier</refpurpose> </refnamediv> <refsect1> <title>Description</title> Index: phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml:1.1 Sun Apr 14 20:29:06 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-jacobi.xml Sat Jul 5 10:52:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./fr/functions/gmp.xml, last change in rev 1.10 --> -<!-- last change to 'gmp-jacobi' in en/ tree in rev 1.1 --> +<!-- splitted from ./fr/functions/gmp.xml, last change in rev 1.10 --> +<!-- last change to 'gmp-jacobi' in en/ tree in rev 1.1 --> <refentry id="function.gmp-jacobi"> <refnamediv> <refname>gmp_jacobi</refname> @@ -8,39 +8,37 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>gmp_jacobi</methodname> - <methodparam><type>resource</type><parameter>a</parameter></methodparam> - <methodparam><type>resource</type><parameter>p</parameter></methodparam> - </methodsynopsis> - <para> + <methodsynopsis> + <type>int</type><methodname>gmp_jacobi</methodname> + <methodparam><type>resource</type><parameter>a</parameter></methodparam> + <methodparam><type>resource</type><parameter>p</parameter></methodparam> + </methodsynopsis> + <para> <function>gmp_jacobi</function> calcule le - <ulink - url="http://www.utm.edu/research/primes/glossary/JacobiSymbol.html"> - symbole de Jacobi</ulink> de <parameter>a</parameter> et + <ulink url="&url.jacobi;">symbole de Jacobi</ulink> de <parameter>a</parameter> et <parameter>p</parameter>. <parameter>p</parameter> doit être positif et impair. </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:"../../../../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 ---> + +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml:1.1 Sun Apr 14 20:29:08 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-perfect-square.xml Sat Jul 5 10:52:46 2003 @@ -9,7 +9,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>gmp_perfect_square</methodname> + <type>bool</type><methodname>gmp_perfect_square</methodname> <methodparam><type>resource</type><parameter>a</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/gmp/functions/gmp-setbit.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-setbit.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-setbit.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-setbit.xml:1.1 Sun Apr 14 20:29:11 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-setbit.xml Sat Jul 5 10:52:46 2003 @@ -12,7 +12,7 @@ <type>resource</type><methodname>gmp_setbit</methodname> <methodparam><type>resource</type><parameter>&a</parameter></methodparam> <methodparam><type>int</type><parameter>index</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter>set_clear</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>set_clear</parameter></methodparam> </methodsynopsis> <para> <function>gmp_setbit</function> modifie le bit <parameter>index</parameter> Index: phpdoc-fr/reference/gmp/functions/gmp-strval.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-strval.xml:1.1 phpdoc-fr/reference/gmp/functions/gmp-strval.xml:1.2 --- phpdoc-fr/reference/gmp/functions/gmp-strval.xml:1.1 Sun Apr 14 20:29:11 2002 +++ phpdoc-fr/reference/gmp/functions/gmp-strval.xml Sat Jul 5 10:52:46 2003 @@ -8,12 +8,12 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>gmp_strval</methodname> - <methodparam><type>resource</type><parameter>gmpnumber</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>base</parameter></methodparam> - </methodsynopsis> - <para> + <methodsynopsis> + <type>string</type><methodname>gmp_strval</methodname> + <methodparam><type>resource</type><parameter>gmpnumber</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>base</parameter></methodparam> + </methodsynopsis> + <para> <function>gmp_strval</function> convertit un nombre GMP en chaîne de caractères, dans la base <parameter>base</parameter>. La base par défaut est 10. Les valeurs possibles vont de 2 à 36. @@ -22,33 +22,36 @@ <example> <title>Conversion d'un nombre GMP en chaîne</title> <programlisting role="php"> -<?php - $a = gmp_init("0x41682179fbf5"); - printf("Décimal: %s, base 36: %s", gmp_strval($a), gmp_strval($a,36)); -?> +<![CDATA[ +<?php + $a = gmp_init("0x41682179fbf5"); + printf("Décimal: %s, base 36: %s", + gmp_strval($a), gmp_strval($a,36)); +?> +]]> </programlisting> </example> </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:"../../../../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 ---> + +<!-- 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:"../../../../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 +--> Index: phpdoc-fr/reference/gmp/configure.xml +++ phpdoc-fr/reference/gmp/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="gmp.installation"> &reftitle.install; <para> Pour pouvoir y accéder, vous devez compiler PHP avec le support <acronym>GMP</acronym> en utilisant l'option <option role="configure">--with-gmp</option>. </para> </section> <!-- 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:"../../../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 --> Index: phpdoc-fr/reference/gmp/constants.xml +++ phpdoc-fr/reference/gmp/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="gmp.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> <constant>GMP_ROUND_ZERO</constant> (&integer;) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>GMP_ROUND_PLUSINF</constant> (&integer;) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>GMP_ROUND_MINUSINF</constant> (&integer;) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> </variablelist> </section> <!-- 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:"../../../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 --> Index: phpdoc-fr/reference/gmp/functions/gmp-com.xml +++ phpdoc-fr/reference/gmp/functions/gmp-com.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/gmp.xml, last change in rev 1.20 --> <refentry id="function.gmp-com"> <refnamediv> <refname>gmp_com</refname> <refpurpose>Calcule le complémentaire d'un nombre</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>resource</type><methodname>gmp_com</methodname> <methodparam><type>resource</type><parameter>a</parameter></methodparam> </methodsynopsis> <para> &warn.undocumented.func; </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:"../../../../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 -->