Functions Index :: S :: SumSquare
Module:
Definition:
SumSquare(val x1, val "x2", val "x3", val "x4", ... , val "x20")
Description:
Returns the sum of squares of its arguments (ie each argument is raised to a power of 2 before contributing to the sum). [1]
Examples:
ss1 = SumSquare(2, 2, 3, 5, 1, 4) # ss1 == 59
ss2 = SumSquare(3, 1, 3, 5, 2, 4) # ss2 == 64
[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.