MCPcopy Create free account
hub / github.com/Aghajari/MathParser / gcd

Method gcd

MathParser/src/com/aghajari/math/Functions.java:254–259  ·  view source on GitHub ↗
(Double... x)

Source from the content-addressed store, hash-verified

252 }
253
254 public static double gcd(Double... x) {
255 double result = 0;
256 for (double value : x)
257 result = gcd(value, result);
258 return result;
259 }
260
261 private static double gcd(double a, double b) {
262 double x = Math.abs(a);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected