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

search for in the

gmp_legendre> <gmp_invert
Last updated: Fri, 29 Aug 2008

view this page in

gmp_jacobi

(PHP 4 >= 4.0.4, PHP 5)

gmp_jacobiヤコビ記号

説明

int gmp_jacobi ( resource $a , resource $p )

a および p» ヤコビ記号 を計算します。p は正の奇数である必要があります。

パラメータ

a

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

p

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

正の奇数でなければなりません。

返り値

GMP 数リソースを返します。

例1 gmp_jacobi() の例

<?php
echo gmp_jacobi("1""3") . "\n";
echo 
gmp_jacobi("2""3") . "\n";
?>

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

1
0



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

gmp_legendre> <gmp_invert
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites