$gcd » History » Version 2
Per Amundsen, 01/13/2023 07:18 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 | N... - The numbers to search. |
||
| 12 | |||
| 13 | *Example* |
||
| 14 | |||
| 15 | <pre> |
||
| 16 | 2 | Per Amundsen | //echo -ag The greatest common divisor for 24 and 54 is $gcd(24, 54) |
| 17 | 1 | Per Amundsen | </pre> |