Search Results
A GMP object, an int, or a string that can be interpreted as a number following the same logic as if the string was used in gmp_init () with automatic base detection (i.e. when base is equal to 0).
Jul 11, 2025 · The gmp_gcdext () is an inbuilt function in PHP which calculates the GCD ( Greatest Common Divisor ) and multipliers of a given equation such that a * x + b * y = GCD (a, b), where GCD is the greatest common divisor.
Return Values PHP gmp_gcdext () function returns an array of GMP numbers. PHP Version This function will work from PHP Version greater than 5.0.0. Example 1 Working of gmp_gcdext −
Calcule les entiers g, s, et t, tels que a*s + b*t = g = gcd (a,b), où gcd est le pgcd de num1 et num2. La fonction retourne un tableau avec les index g, s et t. Cette fonction peut être utilisée pour résoudre des équations diophantines linéaires à deux variables.
Calculates g, s, and t, such that a*s + b*t = g = gcd (a,b), where gcd is the greatest common divisor. Returns an array with respective elements g, s and t.
Parameters 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. 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.
php operating system manual for gmp_gcdext section 3 of the unix.com man page documentation.
