correction of gcd

This commit is contained in:
RonaldoCMP 2021-07-02 11:42:00 +01:00
parent 662d2c66f0
commit eaed14c9b6

View file

@ -536,7 +536,7 @@ function log_rands(minval, maxval, factor, N=1, seed=undef) =
// Description:
// Computes the Greatest Common Divisor/Factor of `a` and `b`.
function gcd(a,b) =
assert(is_int(a) && is_int(b) && b!=0,"Arguments to gcd must be integers with a non zero divisor")
assert(is_int(a) && is_int(b),"Arguments to gcd must be integers")
b==0 ? abs(a) : gcd(b,a % b);