CalcGcd
CalcGcd[ n1, n2, ... ]
CalcGcd[ n1, n2, ... ] returns the greatest common divisor of n1, n2, ...
| Example | in | out |
|---|---|---|
The greatest common divisor of 2 and 6. |
CalcGcd[ 2,6 ] |
2 |
The greatest common divisor of 6, 12 and 15. |
CalcGcd[6,12,15 ] |
3 |
The greatest common divisor of x and y, where x is defined as 5 and y is defined as 10 in the script. |
CalcGcd[x,y] |
5 |