array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.gmp-legendre.php', 1 => 'gmp_legendre', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'GMP İşlevleri', ), 'prev' => array ( 0 => 'function.gmp-lcm.php', 1 => 'gmp_lcm', ), 'next' => array ( 0 => 'function.gmp-mod.php', 1 => 'gmp_mod', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmp/functions/gmp-legendre.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
gmp_legendre — Legendre symbol
Compute the
»
Legendre symbol of num1
and
num2
. num2
should be odd
and must be positive.
Bir GMP nesnesi.
Örnek 1 gmp_legendre() example
<?php
echo gmp_legendre("1", "3") . "\n";
echo gmp_legendre("2", "3") . "\n";
?>
Yukarıdaki örneğin çıktısı:
1 0