From 99b18d631195c8b7a58ca7b62b487fd197ebe0a3 Mon Sep 17 00:00:00 2001 From: RonaldoCMP Date: Wed, 26 Aug 2020 14:14:26 +0100 Subject: [PATCH] Correction of C_times arg validation --- math.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.scad b/math.scad index 888d048..e5c4625 100644 --- a/math.scad +++ b/math.scad @@ -1175,7 +1175,7 @@ function deriv3(data, h=1, closed=false) = // Description: // Multiplies two complex numbers represented by 2D vectors. function C_times(z1,z2) = - assert( is_vector(z1+z2,2), "Complex numbers should be represented by 2D vectors." ) + assert( is_matrix([z1,z2],2,2), "Complex numbers should be represented by 2D vectors" ) [ z1.x*z2.x - z1.y*z2.y, z1.x*z2.y + z1.y*z2.x ]; // Function: C_div()