|
gmp_gcdextCalculate GCD and multipliers Description
array gmp_gcdext(GMPintstring
$num1 , GMPintstring $num2 )
Calculates g, s, and t, such that
This function can be used to solve linear Diophantine equations in two
variables. These are equations that allow only integer solutions and have the form:
Parameters
Return ValuesAn array of GMP numbers. Examples
Example #1 Solving a linear Diophantine equation
|