php man page for gmp_invert

Query: gmp_invert

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GMP_INVERT(3)								 1							     GMP_INVERT(3)

gmp_invert - Inverse by modulo

SYNOPSIS
GMP gmp_invert (GMP $a, GMP $b)
DESCRIPTION
Computes the inverse of $a modulo $b.
PARAMETERS
o $a -Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. o $b -Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.
RETURN VALUES
A GMP number on success or FALSE if an inverse does not exist.
EXAMPLES
Example #1 gmp_invert(3) example <?php echo gmp_invert("5", "10"); // no inverse, outputs nothing, result is FALSE $invert = gmp_invert("5", "11"); echo gmp_strval($invert) . " "; ?> The above example will output: 9 PHP Documentation Group GMP_INVERT(3)
Related Man Pages
ip2long(3) - php
gmp_clrbit(3) - php
gmp_hamdist(3) - php
gmp_init(3) - php
math::gmp(3pm) - debian
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!