Greatest common divisor: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) (→REXX version 3: add {{trans}}) |
Walterpachl (talk | contribs) m (→REXX version 3: Point at LCM regarding comparison of versions) |
||
Line 2,728: | Line 2,728: | ||
Use as gcd(a,b,c,---) |
Use as gcd(a,b,c,---) |
||
Considerably faster than version 1 (and version 2) |
Considerably faster than version 1 (and version 2) |
||
<br>See http://rosettacode.org/wiki/Least_common_multiple#REXX for reasoning. |
|||
<lang rexx>gcd: procedure |
<lang rexx>gcd: procedure |
||
x=abs(arg(1)) |
x=abs(arg(1)) |