MCPcopy
hub / github.com/microsoft/JARVIS / gcd_

Function gcd_

easytool/data_funcqa/funchub/math.py:145–149  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

143
144# 11. greatest common divisor
145def gcd_(args):
146 res = args[0]
147 for arg in args[1:]:
148 res = math.gcd(res, arg)
149 return normalize(res)
150
151# 12. least common multiple
152def lcm_(args):

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected