sum([1,2],[3,4]); gives [4.0, 6.0]
and
vsum([1,2],[3,4]); gives 10.0
Since Jep 3.4 min, max and avg also flattern the arguments, so they will work for your situation.
Richard
Hi,I've coded a range() method that returns a Vector of float. range(2,5) = Vector(2,3,4,5);Now i'm trying to mix it with min, max, sum and avg methods.avg(1,2,3) => 2avg(range(1,3)) => 2sum(1,2,3) => 6sum(range(1,3)) => [1,2,3]What can I do to fix this problem ? Should I use vsum method or create mine ?Thanks