# SUMSQ

**The function SUMSQ returns the sum of squares of all given Number values.**

This function takes any number of [Number](../../variable-data-types/the-number-variable-data-type) values as input. It will return a single Number: the sum of squares of the given Numbers.

#### Declaration

```javascript
SUMSQ(number_1, number_2, ... number_n) -> sum_of_squares
```

&#x20;

#### Parameters

**number\_n** (type: `Number`) The _&#x6E;_&#x74;h individual Number given as input. _n_ can be arbitrarily large; there is no upper limit to the number of Numbers the function SUMSQ will accept.

#### Return Values

**sum\_of\_squares** (type: `Number`) The sum of squares of all of the given Numbers.

#### Examples

The following example takes the Numbers 1, and 2 as input and returns the sum of squares of the two of them:

```javascript
SUMSQ(1, 2) -> 5
```

There is no upper limit to the number of Numbers SUMSQ can process as input. The following example takes five Numbers as input: 1, 2, 3, 1, and 2. Note that the Numbers 1 and 2 are given twice, and that SUMSQ processes the second instance of both numbers exactly like every other given Number:

```javascript
SUMSQ(1, 2, 3, 1, 2) -> 19
```
