AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Function lcm

    • this is an algorithm for finding the least common multiple of a give set of input numbers it works based on the formula lcd (a,b) = a*b / gcd(a,b), and then calculates in a pairwise fashion. this has the risk of breaking with very large sets of inputs and/or prime numbers of a large size

      Parameters

      • original: number[]

      Returns number