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

Function lcm_

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

Source from the content-addressed store, hash-verified

150
151# 12. least common multiple
152def lcm_(args):
153 res = args[0]
154 for arg in args[1:]:
155 res = res * arg // math.gcd(res, arg)
156 return normalize(res)
157
158# 13. remainder
159def remainder_(args):

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected