array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.gmp-legendre.php', 1 => 'gmp_legendre', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'Funções GMP', ), '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' => 'pt_BR', '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 — Símbolo de Legendre
Computa o
»
Símbolo de Legendre de num1
e
num2
. num2
deve ser ímpar
e positivo.
Um objeto GMP.
Exemplo #1 Exemplo da gmp_legendre()
<?php
echo gmp_legendre("1", "3") . "\n";
echo gmp_legendre("2", "3") . "\n";
?>
O exemplo acima produzirá:
1