Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: gmp_powm - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gmp_prob_prime" width="11" height="7"/> <gmp_pow
Last updated: Mon, 05 Feb 2007

view this page in

gmp_powm

(PHP 4 >= 4.0.4, PHP 5)

gmp_powm — べき乗とモジュロを計算する

説明

resource gmp_powm ( resource base, resource exp, resource mod )

mod を法として(baseexp 乗)を計算します。 exp が負の場合、結果は未定義(undefined) となります。

例 751. gmp_powm() の例

<?php
$pow1
= gmp_powm("2", "31", "2147483649");
echo
gmp_strval($pow1) . "\n";
?>

上のプログラムの出力は以下のようになります。


2147483648

     



add a note add a note User Contributed Notes
gmp_powm
There are no user contributed notes for this page.

gmp_prob_prime" width="11" height="7"/> <gmp_pow
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites