GMP gmp_invert

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

gmp_invert — Inverse by modulo


설명

gmp_invert(GMP|int|string $num1, GMP|int|string $num2): GMP|false

num1 모듈로 num2의 역수를 계산합니다.


매개변수

num1
GMP 개체, int 또는 숫자 문자열입니다.
num2
GMP 개체, int 또는 숫자 문자열입니다.

반환 값

성공에 대한 GMP 번호 또는 역수가 존재하지 않는 경우 false.


Examples

예제 #1 gmp_invert() 예제

                  
<?php
echo gmp_invert("5", "10"); // no inverse, outputs nothing, result is FALSE
$invert = gmp_invert("5", "11");
echo gmp_strval($invert) . "\n";
?>
                  
                

위의 예는 다음을 출력합니다.

9