GCD stands
for Greatest Common divisor. GCD(a1, a2…aN)
is a positive number N, which divides all a1,a2…aN with remainder 0.
gcd(a1, a2…aN)
Return GCD of numbers a1, a2…aN. Return zero if a1, a2..aN are zeros.
Return GCD of numbers a1, a2…aN. Return zero if a1, a2..aN are zeros.
julia> gcd(10, 15, 25) 5 julia> gcd(10, 0) 10 julia> gcd(10, 20, 0) 10 julia> gcd(0, 0, 0) 0
No comments:
Post a Comment