gmp_kronecker()
(PHP 7 >= 7.3.0)
Kronecker symbol
说明
gmp_kronecker(mixed $a, mixed $b): int
This function computes the Kronecker symbol of$aand$b.
参数
- $a
可以是一个 GMP数据resouce,或一个可以转换为数值的字符串。
- $b
可以是一个 GMP数据resouce,或一个可以转换为数值的字符串。
返回值
Returns the Kronecker symbol of$aand$b
参见
gmp_jacobi()
Jacobi symbolgmp_legendre()
Legendre symbol