pollita Wed Dec 11 11:34:54 2002 EDT
Added files:
/phpdoc/en/reference/bc/functions bcpowmod.xml
Removed files:
/phpdoc/en/reference/bc/functions bc-powmod.xml
Modified files:
/phpdoc/en/reference/bc/functions bcpow.xml
Log:
bc_powmod() was renamed to bcpowmod().
Index: phpdoc/en/reference/bc/functions/bcpow.xml
diff -u phpdoc/en/reference/bc/functions/bcpow.xml:1.3
phpdoc/en/reference/bc/functions/bcpow.xml:1.4
--- phpdoc/en/reference/bc/functions/bcpow.xml:1.3 Tue Dec 10 15:33:41 2002
+++ phpdoc/en/reference/bc/functions/bcpow.xml Wed Dec 11 11:34:54 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcpow">
<refnamediv>
@@ -23,7 +23,7 @@
digits after the decimal place in the result.
</para>
<para>
- See also <function>bc_powmod</function>, and
+ See also <function>bcpowmod</function>, and
<function>bcsqrt</function>.
</para>
</refsect1>
Index: phpdoc/en/reference/bc/functions/bcpowmod.xml
+++ phpdoc/en/reference/bc/functions/bcpowmod.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.bcpowmod">
<refnamediv>
<refname>bcpowmod</refname>
<refpurpose>
Raise an arbitrary precision number to another, reduced by a specified modulus.
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>string</type><methodname>bcpowmod</methodname>
<methodparam><type>string</type><parameter>x</parameter></methodparam>
<methodparam><type>string</type><parameter>y</parameter></methodparam>
<methodparam><type>string</type><parameter>modulus</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
</methodsynopsis>
<simpara>
Use the fast-exponentiation method to raise <parameter>x</parameter>
to the power <parameter>y</parameter> with respect to the modulus
<parameter>modulus</parameter>. The optional
<parameter>scale</parameter> can be used to set the number of
digits after the decimal place in the result.
</simpara>
<para>
The following two statements are functionally identical. The
<function>bcpowmod</function> version however, executes in
less time and can accept larger parameters.
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
$a = bcpowmod($x,$y,$mod);
$b = bcmod(bcpow($x,$y),$mod);
/* $a and $b are equal to each other. */
?>
]]>
</programlisting>
</informalexample>
</para>
<para>
<note>
<simpara>
Because this method uses the modulus operation, non-natural numbers
may give unexpected results. A natural number is any positive
non-zero integer.
</simpara>
</note>
</para>
<para>
See also <function>bcpow</function>, and
<function>bcmod</function>.
</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
-->
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php