GIgcd - Maple Help

GaussInt

 GIgcd
 greatest common divisor of Gaussian integers

 Calling Sequence GIgcd(x[1], x[2], ..., x[n])

Parameters

 x[1], x[2], ..., x[n] - Gaussian integers

Description

 • The GIgcd function computes and returns the first quadrant associate of a gcd of the Gaussian integers ${x}_{1}={a}_{1}+I{b}_{1}$, ..., ${x}_{n}={a}_{n}+I{b}_{n}$ where the ${a}_{i}$'s and the ${b}_{i}$'s are integers.  The first quadrant associate of a Gaussian integer is defined as ${I}^{5-j}x$ where $x$ is a Gaussian integer and $j$ (1..4) is the quadrant containing $x$ (see GInormal).

Examples

 > $\mathrm{with}\left(\mathrm{GaussInt}\right):$
 > $\mathrm{GIgcd}\left(24,12\right)$
 ${12}$ (1)
 > $\mathrm{GIgcd}\left(-345+515I,1574+368I\right)$
 ${41}{+}{117}{}{I}$ (2)