From eaed14c9b63323f09c62e72b296c1b343140fb4b Mon Sep 17 00:00:00 2001 From: RonaldoCMP Date: Fri, 2 Jul 2021 11:42:00 +0100 Subject: [PATCH] correction of gcd --- math.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.scad b/math.scad index 79d1a4c..8d3d88b 100644 --- a/math.scad +++ b/math.scad @@ -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);