cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/bc book.xml constants.xml reference.xml setup.xml /en/reference/gmp book.xml constants.xml
examples.xml reference.xml setup.xml /en/reference/math book.xml constants.xml reference.xml setup.xml /en/reference/stats book.xml constants.xml
reference.xml setup.xml
| From: | Hannes Magnusson | Date: | Tue, 27 Nov 2007 13:14:39 +0000 |
| Subject: | cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/bc book.xml constants.xml reference.xml setup.xml /en/reference/gmp book.xml constants.xml examples.xml reference.xml setup.xml /en/reference/math book.xml constants.xml reference.xml setup.xml /en/reference/stats book.xml constants.xml reference.xml setup.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-470@lists.php.net to get a copy of this message | ||
bjori Tue Nov 27 13:14:39 2007 UTC
Added files: (Branch: REF_STRUCT_DEV)
/phpdoc/en/reference/bc book.xml constants.xml setup.xml
/phpdoc/en/reference/gmp book.xml examples.xml setup.xml
/phpdoc/en/reference/math book.xml setup.xml
/phpdoc/en/reference/stats book.xml constants.xml setup.xml
Modified files:
/phpdoc manual.xml.in
/phpdoc/en/reference/bc reference.xml
/phpdoc/en/reference/gmp constants.xml reference.xml
/phpdoc/en/reference/math constants.xml reference.xml
/phpdoc/en/reference/stats reference.xml
Log:
Upgrade the math extensions to the new-ref-struct markup
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.15&r2=1.224.2.16&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.15 phpdoc/manual.xml.in:1.224.2.16 --- phpdoc/manual.xml.in:1.224.2.15 Mon Nov 26 22:52:08 2007 +++ phpdoc/manual.xml.in Tue Nov 27 13:14:39 2007 @@ -2,7 +2,7 @@ <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "@srcdir@/docbook/docbook-xml/docbook.dtd" [ -<!-- $Revision: 1.224.2.15 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.16 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> <!-- We use xhtml entities all over the place --> <!ENTITY % xhtml-lat1 SYSTEM "@srcdir@/entities/ISO/xhtml1-lat1.ent"> <!ENTITY % xhtml-symbol SYSTEM "@srcdir@/entities/ISO/xhtml1-symbol.ent"> @@ -267,13 +267,13 @@ &reference.mcve.book; </set> - <book xml:id="refs.mathcrypto.math"> + <set xml:id="refs.mathcrypto.math"> <title>Mathematical Extensions</title> - &reference.bc.reference; - &reference.gmp.reference; - &reference.math.reference; - &reference.stats.reference; - </book> + &reference.bc.book; + &reference.gmp.book; + &reference.math.book; + &reference.stats.book; + </set> <book xml:id="refs.mathcrypto.crypto"> <title>Cryptography Extensions</title> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/bc/reference.xml diff -u phpdoc/en/reference/bc/reference.xml:1.8.2.1 phpdoc/en/reference/bc/reference.xml:1.8.2.2 --- phpdoc/en/reference/bc/reference.xml:1.8.2.1 Wed Oct 3 11:41:08 2007 +++ phpdoc/en/reference/bc/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,47 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> -<!-- Purpose: mathcrypto.math --> -<!-- Membership: bundled --> +<!-- $Revision: 1.8.2.2 $ --> - <reference xml:id="ref.bc" xmlns="http://docbook.org/ns/docbook"> - <title>BCMath Arbitrary Precision Mathematics Functions</title> - <titleabbrev>BC math</titleabbrev> +<reference xml:id="functions.bc" xmlns="http://docbook.org/ns/docbook"> + <title>BC Math &Functions;</title> - <partintro> - <section xml:id="bc.intro"> - &reftitle.intro; - <para> - For arbitrary precision mathematics PHP offers the Binary Calculator which - supports numbers of any size and precision, represented as strings. - </para> - </section> + &reference.bc.functions.entities; - <section xml:id="bc.requirements"> - &reftitle.required; - <para> - Since PHP 4.0.4, libbcmath is bundled with PHP. You don't need any - external libraries for this extension. - </para> - </section> - - &reference.bc.configure; - - &reference.bc.ini; - - <section xml:id="bc.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="bc.constants"> - &reftitle.constants; - &no.constants; - </section> - </partintro> - -&reference.bc.functions.entities; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/constants.xml?r1=1.5&r2=1.5.2.1&diff_format=u Index: phpdoc/en/reference/gmp/constants.xml diff -u phpdoc/en/reference/gmp/constants.xml:1.5 phpdoc/en/reference/gmp/constants.xml:1.5.2.1 --- phpdoc/en/reference/gmp/constants.xml:1.5 Wed Jun 20 22:24:31 2007 +++ phpdoc/en/reference/gmp/constants.xml Tue Nov 27 13:14:39 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="gmp.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.5.2.1 $ --> +<appendix xml:id="gmp.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -49,7 +49,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/gmp/reference.xml diff -u phpdoc/en/reference/gmp/reference.xml:1.14.2.1 phpdoc/en/reference/gmp/reference.xml:1.14.2.2 --- phpdoc/en/reference/gmp/reference.xml:1.14.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/gmp/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,123 +1,23 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> -<!-- Purpose: mathcrypto.math --> -<!-- Membership: bundled, external --> - - <reference xml:id="ref.gmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>GMP Functions</title> - <titleabbrev>GMP</titleabbrev> - <partintro> - - <section xml:id="gmp.intro"> - &reftitle.intro; - <simpara> - These functions allow you to work with arbitrary-length integers - using the GNU <acronym>MP</acronym> library. - </simpara> - <simpara> - These functions have been added in PHP 4.0.4. - </simpara> - <note> - <para> - Most GMP functions accept GMP number arguments, defined as - <literal>resource</literal> below. However, most of these - functions will also accept numeric and string arguments, given - that it is possible to convert the latter to a number. Also, - if there is a faster function that can operate on integer arguments, - it would be used instead of the slower function when the supplied arguments are - integers. This is done transparently, so the bottom line is that - you can use integers in every function that expects GMP - number. See also the <function>gmp_init</function> function. - </para> - </note> - <warning> - <simpara> - If you want to explicitly specify a large integer, - specify it as a string. If you don't do that, PHP will - interpret the integer-literal first, possibly resulting - in loss of precision, even before <literal>GMP</literal> - comes into play. - </simpara> - </warning> - <note> - <simpara> - This extension is available on Windows platforms since PHP 5.1.0. - </simpara> - </note> - </section> - - <section xml:id="gmp.requirements"> - &reftitle.required; - <para> - You can download the <acronym>GMP</acronym> library from <link - xlink:href="&url.gmp;">&url.gmp;</link>. This site also has the - <acronym>GMP</acronym> manual available. - </para> - <simpara> - You will need GMP version 2 or better to use these functions. Some - functions may require more recent version of the GMP library. - </simpara> - </section> - - &reference.gmp.configure; - - <section xml:id="gmp.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="gmp.resources"> - &reftitle.resources; - <para> - Most GPM functions operate on or return GMP number resources. - </para> - </section> - - &reference.gmp.constants; - - <section xml:id="gmp.examples"> - &reftitle.examples; - <para> - <example> - <title>Factorial function using GMP</title> - <programlisting role="php"> -<![CDATA[ -<?php -function fact($x) -{ - $return = 1; - for ($i=2; $i < $x; $i++) { - $return = gmp_mul($return, $i); - } - return $return; -} - -echo gmp_strval(fact(1000)) . "\n"; -?> -]]> - </programlisting> - </example> - </para> - <para> - This will calculate factorial of 1000 (pretty big number) - very fast. - </para> - </section> +<!-- $Revision: 1.14.2.2 $ --> - <section xml:id="gmp.seealso"> +<reference xml:id="functions.gmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>GMP Functions</title> + + <partintro> + <section xml:id="gmp.seealso"> &reftitle.seealso; - <para> - More mathematical functions can be found in the sections - <link linkend="ref.bc">BCMath Arbitrary Precision Mathematics Functions</link> - and <link linkend="ref.math">Mathematical Functions</link>. - </para> - </section> + <para> + More mathematical functions can be found in the + <xref linkend="refs.mathcrypto.math" /> section + </para> + </section> + </partintro> - </partintro> + &reference.gmp.functions.entities; -&reference.gmp.functions.entities; +</reference> - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/constants.xml?r1=1.4&r2=1.4.2.1&diff_format=u Index: phpdoc/en/reference/math/constants.xml diff -u phpdoc/en/reference/math/constants.xml:1.4 phpdoc/en/reference/math/constants.xml:1.4.2.1 --- phpdoc/en/reference/math/constants.xml:1.4 Wed Jun 20 22:24:50 2007 +++ phpdoc/en/reference/math/constants.xml Tue Nov 27 13:14:39 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<section xml:id="math.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4.2.1 $ --> +<appendix xml:id="math.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants.core; <para> @@ -107,7 +107,7 @@ All other constants are available starting with PHP 4.0.0. Constants labeled [5.2.0] were added in PHP 5.2.0. </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/math/reference.xml diff -u phpdoc/en/reference/math/reference.xml:1.8.2.1 phpdoc/en/reference/math/reference.xml:1.8.2.2 --- phpdoc/en/reference/math/reference.xml:1.8.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/math/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,56 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> -<!-- Purpose: mathcrypto.math --> -<!-- Membership: core --> +<!-- $Revision: 1.8.2.2 $ --> - <reference xml:id="ref.math" xmlns="http://docbook.org/ns/docbook"> - <title>Mathematical Functions</title> - <titleabbrev>Math</titleabbrev> - - <partintro> - <section xml:id="math.intro"> - &reftitle.intro; - <para> - These math functions will only handle values within the range of - the <type>integer</type> and <type>float</type> types on your computer - (this corresponds currently to the C types long resp. double). - If you need to handle bigger numbers, take a look at the <link - linkend="ref.bc">arbitrary precision math functions</link>. - </para> - <simpara> - See also the manual page on - <link linkend="language.operators.arithmetic">arithmetic - operators</link>. - </simpara> - </section> +<reference xml:id="functions.math" xmlns="http://docbook.org/ns/docbook"> + <title>Math &Functions;</title> - <section xml:id="math.requirements"> - &reftitle.required; - &no.requirement; - </section> - - <section xml:id="math.installation"> - &reftitle.install; - &no.install; - </section> + &reference.math.functions.entities; - <section xml:id="math.configuration"> - &reftitle.runtime; - &no.config; - </section> +</reference> - <section xml:id="math.resources"> - &reftitle.resources; - &no.resource; - </section> - - &reference.math.constants; - - </partintro> - -&reference.math.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/reference.xml?r1=1.2.2.1&r2=1.2.2.2&diff_format=u Index: phpdoc/en/reference/stats/reference.xml diff -u phpdoc/en/reference/stats/reference.xml:1.2.2.1 phpdoc/en/reference/stats/reference.xml:1.2.2.2 --- phpdoc/en/reference/stats/reference.xml:1.2.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/stats/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,46 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2.2.1 $ --> +<!-- $Revision: 1.2.2.2 $ --> <!-- Purpose: mathcrypto.math --> <!-- Membership: pecl --> -<reference xml:id="ref.stats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Statistics Functions</title> - <titleabbrev>Statistics</titleabbrev> - - <partintro> - <section xml:id="stats.intro"> - &reftitle.intro; - <para> - This is the statistics extension. It contains few dozens of functions - useful for statistical computations. It is a wrapper around 2 scientific - libraries, namely DCDFLIB (Library of C routines for Cumulative - Distributions Functions, Inverses, and Other parameters) by B. Brown & - J. Lavato and RANDLIB by Barry Brown, James Lavato & Kathy Russell. - Includes CD and PD functions. - </para> - </section> - - <section xml:id="stats.installation"> - &reftitle.install; - <para> - &pecl.moved; - </para> - <para> - &pecl.info; - <link xlink:href="&url.pecl.package;stats">&url.pecl.package;stats</link>. - </para> - <para> - &pecl.windows.download; - </para> - </section> - - <section xml:id="stats.requirements"> - &reftitle.required; - <para> - No external libraries are needed. The extension comes bundled with the libraries used. - </para> - </section> - </partintro> +<reference xml:id="functions.stats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Statistics &Functions;</title> &reference.stats.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/bc/book.xml +++ phpdoc/en/reference/bc/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/bc/constants.xml +++ phpdoc/en/reference/bc/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/bc/setup.xml +++ phpdoc/en/reference/bc/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/gmp/book.xml +++ phpdoc/en/reference/gmp/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/gmp/examples.xml +++ phpdoc/en/reference/gmp/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/gmp/setup.xml +++ phpdoc/en/reference/gmp/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/math/book.xml +++ phpdoc/en/reference/math/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/math/setup.xml +++ phpdoc/en/reference/math/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/stats/book.xml +++ phpdoc/en/reference/stats/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/stats/constants.xml +++ phpdoc/en/reference/stats/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/stats/setup.xml +++ phpdoc/en/reference/stats/setup.xml
http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.15&r2=1.224.2.16&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.15 phpdoc/manual.xml.in:1.224.2.16 --- phpdoc/manual.xml.in:1.224.2.15 Mon Nov 26 22:52:08 2007 +++ phpdoc/manual.xml.in Tue Nov 27 13:14:39 2007 @@ -2,7 +2,7 @@ <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "@srcdir@/docbook/docbook-xml/docbook.dtd" [ -<!-- $Revision: 1.224.2.15 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.16 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> <!-- We use xhtml entities all over the place --> <!ENTITY % xhtml-lat1 SYSTEM "@srcdir@/entities/ISO/xhtml1-lat1.ent"> <!ENTITY % xhtml-symbol SYSTEM "@srcdir@/entities/ISO/xhtml1-symbol.ent"> @@ -267,13 +267,13 @@ &reference.mcve.book; </set> - <book xml:id="refs.mathcrypto.math"> + <set xml:id="refs.mathcrypto.math"> <title>Mathematical Extensions</title> - &reference.bc.reference; - &reference.gmp.reference; - &reference.math.reference; - &reference.stats.reference; - </book> + &reference.bc.book; + &reference.gmp.book; + &reference.math.book; + &reference.stats.book; + </set> <book xml:id="refs.mathcrypto.crypto"> <title>Cryptography Extensions</title> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/bc/reference.xml diff -u phpdoc/en/reference/bc/reference.xml:1.8.2.1 phpdoc/en/reference/bc/reference.xml:1.8.2.2 --- phpdoc/en/reference/bc/reference.xml:1.8.2.1 Wed Oct 3 11:41:08 2007 +++ phpdoc/en/reference/bc/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,47 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> -<!-- Purpose: mathcrypto.math --> -<!-- Membership: bundled --> +<!-- $Revision: 1.8.2.2 $ --> - <reference xml:id="ref.bc" xmlns="http://docbook.org/ns/docbook"> - <title>BCMath Arbitrary Precision Mathematics Functions</title> - <titleabbrev>BC math</titleabbrev> +<reference xml:id="functions.bc" xmlns="http://docbook.org/ns/docbook"> + <title>BC Math &Functions;</title> - <partintro> - <section xml:id="bc.intro"> - &reftitle.intro; - <para> - For arbitrary precision mathematics PHP offers the Binary Calculator which - supports numbers of any size and precision, represented as strings. - </para> - </section> + &reference.bc.functions.entities; - <section xml:id="bc.requirements"> - &reftitle.required; - <para> - Since PHP 4.0.4, libbcmath is bundled with PHP. You don't need any - external libraries for this extension. - </para> - </section> - - &reference.bc.configure; - - &reference.bc.ini; - - <section xml:id="bc.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="bc.constants"> - &reftitle.constants; - &no.constants; - </section> - </partintro> - -&reference.bc.functions.entities; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/constants.xml?r1=1.5&r2=1.5.2.1&diff_format=u Index: phpdoc/en/reference/gmp/constants.xml diff -u phpdoc/en/reference/gmp/constants.xml:1.5 phpdoc/en/reference/gmp/constants.xml:1.5.2.1 --- phpdoc/en/reference/gmp/constants.xml:1.5 Wed Jun 20 22:24:31 2007 +++ phpdoc/en/reference/gmp/constants.xml Tue Nov 27 13:14:39 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="gmp.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.5.2.1 $ --> +<appendix xml:id="gmp.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -49,7 +49,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/gmp/reference.xml diff -u phpdoc/en/reference/gmp/reference.xml:1.14.2.1 phpdoc/en/reference/gmp/reference.xml:1.14.2.2 --- phpdoc/en/reference/gmp/reference.xml:1.14.2.1 Wed Oct 3 11:41:10 2007 +++ phpdoc/en/reference/gmp/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,123 +1,23 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> -<!-- Purpose: mathcrypto.math --> -<!-- Membership: bundled, external --> - - <reference xml:id="ref.gmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>GMP Functions</title> - <titleabbrev>GMP</titleabbrev> - <partintro> - - <section xml:id="gmp.intro"> - &reftitle.intro; - <simpara> - These functions allow you to work with arbitrary-length integers - using the GNU <acronym>MP</acronym> library. - </simpara> - <simpara> - These functions have been added in PHP 4.0.4. - </simpara> - <note> - <para> - Most GMP functions accept GMP number arguments, defined as - <literal>resource</literal> below. However, most of these - functions will also accept numeric and string arguments, given - that it is possible to convert the latter to a number. Also, - if there is a faster function that can operate on integer arguments, - it would be used instead of the slower function when the supplied arguments are - integers. This is done transparently, so the bottom line is that - you can use integers in every function that expects GMP - number. See also the <function>gmp_init</function> function. - </para> - </note> - <warning> - <simpara> - If you want to explicitly specify a large integer, - specify it as a string. If you don't do that, PHP will - interpret the integer-literal first, possibly resulting - in loss of precision, even before <literal>GMP</literal> - comes into play. - </simpara> - </warning> - <note> - <simpara> - This extension is available on Windows platforms since PHP 5.1.0. - </simpara> - </note> - </section> - - <section xml:id="gmp.requirements"> - &reftitle.required; - <para> - You can download the <acronym>GMP</acronym> library from <link - xlink:href="&url.gmp;">&url.gmp;</link>. This site also has the - <acronym>GMP</acronym> manual available. - </para> - <simpara> - You will need GMP version 2 or better to use these functions. Some - functions may require more recent version of the GMP library. - </simpara> - </section> - - &reference.gmp.configure; - - <section xml:id="gmp.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="gmp.resources"> - &reftitle.resources; - <para> - Most GPM functions operate on or return GMP number resources. - </para> - </section> - - &reference.gmp.constants; - - <section xml:id="gmp.examples"> - &reftitle.examples; - <para> - <example> - <title>Factorial function using GMP</title> - <programlisting role="php"> -<![CDATA[ -<?php -function fact($x) -{ - $return = 1; - for ($i=2; $i < $x; $i++) { - $return = gmp_mul($return, $i); - } - return $return; -} - -echo gmp_strval(fact(1000)) . "\n"; -?> -]]> - </programlisting> - </example> - </para> - <para> - This will calculate factorial of 1000 (pretty big number) - very fast. - </para> - </section> +<!-- $Revision: 1.14.2.2 $ --> - <section xml:id="gmp.seealso"> +<reference xml:id="functions.gmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>GMP Functions</title> + + <partintro> + <section xml:id="gmp.seealso"> &reftitle.seealso; - <para> - More mathematical functions can be found in the sections - <link linkend="ref.bc">BCMath Arbitrary Precision Mathematics Functions</link> - and <link linkend="ref.math">Mathematical Functions</link>. - </para> - </section> + <para> + More mathematical functions can be found in the + <xref linkend="refs.mathcrypto.math" /> section + </para> + </section> + </partintro> - </partintro> + &reference.gmp.functions.entities; -&reference.gmp.functions.entities; +</reference> - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/constants.xml?r1=1.4&r2=1.4.2.1&diff_format=u Index: phpdoc/en/reference/math/constants.xml diff -u phpdoc/en/reference/math/constants.xml:1.4 phpdoc/en/reference/math/constants.xml:1.4.2.1 --- phpdoc/en/reference/math/constants.xml:1.4 Wed Jun 20 22:24:50 2007 +++ phpdoc/en/reference/math/constants.xml Tue Nov 27 13:14:39 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<section xml:id="math.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4.2.1 $ --> +<appendix xml:id="math.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants.core; <para> @@ -107,7 +107,7 @@ All other constants are available starting with PHP 4.0.0. Constants labeled [5.2.0] were added in PHP 5.2.0. </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/reference.xml?r1=1.8.2.1&r2=1.8.2.2&diff_format=u Index: phpdoc/en/reference/math/reference.xml diff -u phpdoc/en/reference/math/reference.xml:1.8.2.1 phpdoc/en/reference/math/reference.xml:1.8.2.2 --- phpdoc/en/reference/math/reference.xml:1.8.2.1 Wed Oct 3 11:41:11 2007 +++ phpdoc/en/reference/math/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,56 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8.2.1 $ --> -<!-- Purpose: mathcrypto.math --> -<!-- Membership: core --> +<!-- $Revision: 1.8.2.2 $ --> - <reference xml:id="ref.math" xmlns="http://docbook.org/ns/docbook"> - <title>Mathematical Functions</title> - <titleabbrev>Math</titleabbrev> - - <partintro> - <section xml:id="math.intro"> - &reftitle.intro; - <para> - These math functions will only handle values within the range of - the <type>integer</type> and <type>float</type> types on your computer - (this corresponds currently to the C types long resp. double). - If you need to handle bigger numbers, take a look at the <link - linkend="ref.bc">arbitrary precision math functions</link>. - </para> - <simpara> - See also the manual page on - <link linkend="language.operators.arithmetic">arithmetic - operators</link>. - </simpara> - </section> +<reference xml:id="functions.math" xmlns="http://docbook.org/ns/docbook"> + <title>Math &Functions;</title> - <section xml:id="math.requirements"> - &reftitle.required; - &no.requirement; - </section> - - <section xml:id="math.installation"> - &reftitle.install; - &no.install; - </section> + &reference.math.functions.entities; - <section xml:id="math.configuration"> - &reftitle.runtime; - &no.config; - </section> +</reference> - <section xml:id="math.resources"> - &reftitle.resources; - &no.resource; - </section> - - &reference.math.constants; - - </partintro> - -&reference.math.functions.entities; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/reference.xml?r1=1.2.2.1&r2=1.2.2.2&diff_format=u Index: phpdoc/en/reference/stats/reference.xml diff -u phpdoc/en/reference/stats/reference.xml:1.2.2.1 phpdoc/en/reference/stats/reference.xml:1.2.2.2 --- phpdoc/en/reference/stats/reference.xml:1.2.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/stats/reference.xml Tue Nov 27 13:14:39 2007 @@ -1,46 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2.2.1 $ --> +<!-- $Revision: 1.2.2.2 $ --> <!-- Purpose: mathcrypto.math --> <!-- Membership: pecl --> -<reference xml:id="ref.stats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Statistics Functions</title> - <titleabbrev>Statistics</titleabbrev> - - <partintro> - <section xml:id="stats.intro"> - &reftitle.intro; - <para> - This is the statistics extension. It contains few dozens of functions - useful for statistical computations. It is a wrapper around 2 scientific - libraries, namely DCDFLIB (Library of C routines for Cumulative - Distributions Functions, Inverses, and Other parameters) by B. Brown & - J. Lavato and RANDLIB by Barry Brown, James Lavato & Kathy Russell. - Includes CD and PD functions. - </para> - </section> - - <section xml:id="stats.installation"> - &reftitle.install; - <para> - &pecl.moved; - </para> - <para> - &pecl.info; - <link xlink:href="&url.pecl.package;stats">&url.pecl.package;stats</link>. - </para> - <para> - &pecl.windows.download; - </para> - </section> - - <section xml:id="stats.requirements"> - &reftitle.required; - <para> - No external libraries are needed. The extension comes bundled with the libraries used. - </para> - </section> - </partintro> +<reference xml:id="functions.stats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Statistics &Functions;</title> &reference.stats.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/bc/book.xml +++ phpdoc/en/reference/bc/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/bc/constants.xml +++ phpdoc/en/reference/bc/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/bc/setup.xml +++ phpdoc/en/reference/bc/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/gmp/book.xml +++ phpdoc/en/reference/gmp/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/gmp/examples.xml +++ phpdoc/en/reference/gmp/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/gmp/setup.xml +++ phpdoc/en/reference/gmp/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/math/book.xml +++ phpdoc/en/reference/math/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/math/setup.xml +++ phpdoc/en/reference/math/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/stats/book.xml +++ phpdoc/en/reference/stats/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/stats/constants.xml +++ phpdoc/en/reference/stats/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/stats/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/stats/setup.xml +++ phpdoc/en/reference/stats/setup.xml