cvs: phpdoc-ja /reference/bc/functions bcpowmod.xml

From: Date: Sun, 31 Jul 2005 03:33:02 +0000
Subject: cvs: phpdoc-ja /reference/bc/functions bcpowmod.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1095@lists.php.net to get a copy of this message
takagi Sat Jul 30 23:33:02 2005 EDT Added files: /phpdoc-ja/reference/bc/functions bcpowmod.xml Log: add japanese manual. http://cvs.php.net/co.php/phpdoc-ja/reference/bc/functions/bcpowmod.xml?r=1.1&p=1 Index: phpdoc-ja/reference/bc/functions/bcpowmod.xml +++ phpdoc-ja/reference/bc/functions/bcpowmod.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <refentry id="function.bcpowmod"> <refnamediv> <refname>bcpowmod</refname> <refpurpose> 任意精度数値のべき乗の、指定した数値による剰余 </refpurpose> </refnamediv> <refsect1> <title>説明</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> <para> <parameter>modulus</parameter> で割った余りを求めることを考慮して、 <parameter>x</parameter> の <parameter>y</parameter> 乗を高速に計算します。 オプションの <parameter>scale</parameter> パラメータは、結果における 小数点以下の桁数を指定するために使用します。 </para> <note> <para> このメソッドでは剰余計算を行っているので、自然数ではない数を 指定すると予期せぬ結果となります。自然数とは 0 以外の正の整数です。 </para> </note> </refsect1> <refsect1> &reftitle.examples; <para> 以下の 2 つの文は機能的に同じです。しかし <function>bcpowmod</function> バージョンのほうが実行時間が早いうえ、 より大きな値の計算が可能です。 <informalexample> <programlisting role="php"> <![CDATA[ <?php $a = bcpowmod($x, $y, $mod); $b = bcmod(bcpow($x, $y), $mod); // $a と $b は互いに等しい。 ?> ]]> </programlisting> </informalexample> </para> </refsect1> <refsect1> &reftitle.seealso; <para> <function>bcpow</function>&listendand; <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 -->

« previous php.doc.ja (#1095) next »