(PHP 4 >= 4.0.4, PHP 5)
gmp_jacobi — ヤコビ記号
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.
Example#1 gmp_jacobi() の例
<?phpecho gmp_jacobi("1", "3") . "\n";echo gmp_jacobi("2", "3") . "\n";?>
上の例の出力は以下となります。
1 0