What is gmp_jacobi in PHP?
gmp_jacobi is a function in PHP that finds the
Syntax
gmp_jacobi(GMP|int|string $num1, GMP|int|string $num2): int
Parameters
The function takes two parameters: num1 and num2.
num1andnum2can be a numeric string, GMP object, or theinttype.
num2must be positive and should not be an even number.
Return value
The function returns the Jacobi symbol of num1 and num2.
The value returned is of the int type.
Code
<?php$result = gmp_jacobi("1", "3") ;echo $result . "\n";?>