logical; if TRUE
the extended Euclidean algorithm will be applied.

Value

A numeric (integer) value or vector of integers. Or a list of three vectors
named c, d, g, g containing the greatest common divisors, such thatg = c * a + d * b.

Details

Computation based on the extended Euclidean algorithm.

If both a and b are vectors of the same length, the greatest
common divisor/lowest common multiple will be computed elementwise.
If one is a vektor, the other a scalar, the scalar will be replicated to
the same length.