Fixed calls to vmul() with heteerogenous vector sizes.

This commit is contained in:
Garth Minette
2020-08-02 23:23:50 -07:00
parent 59aebd33ce
commit e56f953c1c
8 changed files with 26 additions and 24 deletions

View File

@@ -36,7 +36,7 @@ NAN = acos(2); // The value `nan`, useful for comparisons.
function sqr(x) =
is_list(x) ? [for(val=x) sqr(val)] :
is_finite(x) ? x*x :
assert(is_finite(x) || is_vector(x), "Input is not neither a number nor a list of numbers.");
assert(is_finite(x) || is_vector(x), "Input is not a number nor a list of numbers.");
// Function: log2()