Condividi tramite


Funzione ExtendedGreatestCommonDivisorI

Nome completo: Std.Math.ExtendedGreatestCommonDivisorI

function ExtendedGreatestCommonDivisorI(a : Int, b : Int) : (Int, Int)

Sommario

Restituisce una tupla (u,v) in modo che ua+vb=GCD(a,b) Nota: GCD è sempre positivo, ad eccezione del fatto che GCD(0,0)=0.