mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-28 15:09:52 +02:00
Fixed calls to vmul() with heteerogenous vector sizes.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user