public class GCD
extends java.lang.Object
Constructor and Description |
---|
GCD() |
Modifier and Type | Method and Description |
---|---|
static int |
compute(int a,
int b)
Computes the GCD of the two given numbers.
|
static long[] |
computeWithLinearCombination(long a,
long b) |
static boolean |
test(int[] a,
int[] b,
int c,
int nest) |
public static int compute(int a, int b)
public static boolean test(int[] a, int[] b, int c, int nest)
a
- All coefficients in the first expression.b
- All coefficients in the second expression.c
- The constant part of the equation.nest
- The size of a and b.public static long[] computeWithLinearCombination(long a, long b)