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

search for in the

gmp_mod> <gmp_jacobi
Last updated: Fri, 10 Oct 2008

view this page in

gmp_legendre

(PHP 4 >= 4.0.4, PHP 5)

gmp_legendreルジェンドル記号

説明

int gmp_legendre ( resource $a , resource $p )

ap» ルジェンドル記号 を計算します。p は、正の奇数である必要があります。

パラメータ

a

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

p

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

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

返り値

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

例1 gmp_legendre() の例

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

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

1
0



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

gmp_mod> <gmp_jacobi
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites