PHP.nl

gmp_jacobi

gmp_jacobi

Jacobi symbol

int **gmp_jacobi**  $num1  $num2

Computes of and . should be odd and must be positive. Jacobi symbolnum1``num2``num2

num1``num2Should be odd and must be positive.

gmp.return

Voorbeeld: example

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

gmp_kronecker``gmp_legendre