PHP gmp_invert() FunctionPHP has a function called GMP invert() that finds the modular inverse of a GMP number under another GMP number. SyntaxThe following syntax shows the PHP GMP invert function. Parameters
Return Values
ExamplesThe following example shows the modular inverse value from several parameters using the GMP function. Example1: the following example shows the gmp_invert() function with a basic value. The given parameter shows modular inverse values of the given numbers. Output: The image shows the modular inverse value of the given value. Example2: the following example shows the gmp_invert() function with a basic negative value. We can use both negative values as parameters Output: The image shows the modular inverse value of the given value. Example3: the following example shows the gmp_invert() function with variable parameter and its value Output: The image shows the modular inverse value of the given value. Example4: the following example shows the gmp_invert() function with positive and negative variable values. We can use both positive and negative values as parameters. Output: The image shows the modular inverse value of the given value. Example5: the following example shows the gmp_invert() function using the variable values with GMP parameters. We can use both positive and negative values in the GMP parameters. Output: The image shows the modular inverse value of the given value. ConclusionThe gmp_invert() function displays the modular inverse integer value of the given numerical data.
Next TopicPHP gmp_jacobi() Function
|