共用方式為


ExtendedGreatestCommonDivisorI 函式

完整名稱:Std.Math.ExtendedGreatestCommonDivisorI

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

總結

傳回 Tuple (u,v) 讓 ua+vb=GCD(a,b) 附注:GCD 一律為正數,但 GCD(0,0)=0 除外。