Functions Index :: S :: Sum

[<< up one level]

Module:

numeric :: core

Definition:

Sum(val x1, val "x2", val "x3", val "x4", ... , val "x20")

Description:

Returns the sum of its arguments. [1]

Examples:

sm1 = Sum(2, 2, 3, 5, 1, 4) # sm1 == 17

sm2 = Sum(clip1, clip2, clip3) # clips can also be summed

sm3 = Sum("ab", "cde", "f") # sm3 == "abcdef"

 

[<< top]

 


[1]: The function can handle up to 20 arguments. This number is chosen as a good balance between usability and speed. If more arguments are needed use an array and the ArraySum function, or a suitable function of the array package.