SUMSQ

f = SUMSQ (var1 [, …, varN])

Sum of square value(s) var1 to varN. var1 to varN are single numbers or arrays.

Example

A = [1, 2, 3]
print sumsq(1, 2, 3)      ' 1^2 + 2^2 + 3^2 -> Output: 14
print sumsq(A)            ' Output: 14
print sumsq(A, 1, 2, 3)   ' Output: 28
Math
If there is insufficient information on this page and you wish learn more about SUMSQ, please send an email to smallbasic@gmail.com. You can help to improve information about SUMSQ by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.