array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.gmp-invert.php', 1 => 'gmp_invert', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'GMP İşlevleri', ), 'prev' => array ( 0 => 'function.gmp-intval.php', 1 => 'gmp_intval', ), 'next' => array ( 0 => 'function.gmp-jacobi.php', 1 => 'gmp_jacobi', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmp/functions/gmp-invert.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_invert — Inverse by modulo
Computes the inverse of num1
modulo
num2
.
A GMP number on success or false
if an inverse does not exist.
Örnek 1 gmp_invert() example
<?php
echo gmp_invert("5", "10"); // no inverse, outputs nothing, result is FALSE
$invert = gmp_invert("5", "11");
echo gmp_strval($invert) . "\n";
?>
Yukarıdaki örneğin çıktısı:
9