gmp_jacobi()
gmp_jacobi - Jacobi symbol
Syntax
int gmp_jacobi (
resource $a,
resource $p)
Arguments
- a - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
- 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. Should be odd and must be positive.
Description
Computes ? Jacobi symbolof a and p. p should be odd and must be positive.
Version
PHP 4.0.4, 5
Return value
A GMP number resource.