EuclideanGCD Method (X, Y)
Cove - A Practical Quantum Computer Programming Framework
EuclideanGCD Method (X, Y)
NamespacesCove.BaseUtilitiesEuclideanGCD(Int32, Int32)
Return the greatest common divisor (GCD) of X and Y via the Euclidean algorithm.
Declaration Syntax
C#Visual BasicVisual C++
public static int EuclideanGCD(
	int X,
	int Y
)
Public Shared Function EuclideanGCD ( _
	X As Integer, _
	Y As Integer _
) As Integer
public:
static int EuclideanGCD(
	int X, 
	int Y
)
Parameters
X (Int32)
First number
Y (Int32)
Second number
Return Value
The greatest common divisor of X and Y.

Assembly: Cove.Base (Module: Cove.Base) Version: 1.0.0.0 (1.0.0.0)