Java Euclidean euclideanGcd(long a, long b)

Here you can find the source of euclideanGcd(long a, long b)

Description

euclidean Gcd

License

Open Source License

Declaration

public static long euclideanGcd(long a, long b) 

Method Source Code

//package com.java2s;

public class Main {
    public static long euclideanGcd(long a, long b) {
        while (b != 0) {
            long t = b;
            b = a % b;/* w  w  w.j a va  2  s .co  m*/
            a = t;
        }
        return a;
    }
}

Related

  1. euclideanGCD(final long firstNumerator, final long secondNumerator)
  2. euclideanLength(double[] vector)
  3. euclideanMod(final float x, final float y)
  4. euclideanNorm(float vector[])
  5. euclideanNormSquared(double[] x1, double[] x2)