(PHP 4 >= 4.0.4, PHP 5)
gmp_legendre — ルジェンドル記号
a と p の » ルジェンドル記号 を計算します。p は、正の奇数である必要があります。
It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
正の奇数でなければなりません。
A GMP number resource.
例1 gmp_legendre() の例
<?phpecho gmp_legendre("1", "3") . "\n";echo gmp_legendre("2", "3") . "\n";?>
上の例の出力は以下となります。
1 0