Big Integer.Extended Greatest Common Divisor Method
Returns the greatest common divisor (GCD) of two BigInteger numbers.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The greatest common divisor of left and right.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public BigInteger ExtendedGreatestCommonDivisor(
BigInteger left,
BigInteger right,
out BigInteger x,
out BigInteger y
)
Parameters
- left BigInteger
- A BigInteger number.
- right BigInteger
- A BigInteger number.
- x BigInteger
- On return, the coefficient of right.
- y BigInteger
- On return, the coefficient of right.
Return Value
BigIntegerThe greatest common divisor of left and right.