$gcd » History » Version 3
Per Amundsen, 02/23/2023 12:10 AM
1 | 1 | Per Amundsen | _Added in 4.3_ |
---|---|---|---|
2 | |||
3 | *$gcd(N,...)* |
||
4 | |||
5 | Returns the "greatest common divisor":https://en.wikipedia.org/wiki/Greatest_common_divisor for the specified list of numbers. |
||
6 | |||
7 | _See also [[$lcm]]._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | 3 | Per Amundsen | table(ktable). |
12 | |*Parameter*|*Description*| |
||
13 | | N... | The numbers to search. | |
||
14 | 1 | Per Amundsen | |
15 | *Example* |
||
16 | |||
17 | <pre> |
||
18 | 2 | Per Amundsen | //echo -ag The greatest common divisor for 24 and 54 is $gcd(24, 54) |
19 | 1 | Per Amundsen | </pre> |