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

search for in the

gmp_jacobi> <gmp_intval
[edit] Last updated: Fri, 07 Jun 2013

view this page in

gmp_invert

(PHP 4 >= 4.0.4, PHP 5)

gmp_invert法による逆

説明

resource gmp_invert ( resource $a , resource $b )

b を法とした a の逆を計算します。

パラメータ

a

GMP 数リソース、 あるいは数値に変換可能な数値形式の文字列。

b

GMP 数リソース、 あるいは数値に変換可能な数値形式の文字列。

返り値

成功した場合に GMP 数、逆が存在しない場合に FALSE を返します。

例1 gmp_invert() の例

<?php
echo gmp_invert("5""10"); // 逆は存在しないので何も出力せず、結果は FALSE となります
$invert gmp_invert("5""11");
echo 
gmp_strval($invert) . "\n";
?>

上の例の出力は以下となります。

9



add a note add a note User Contributed Notes gmp_invert - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites