# LIST_STAT_SUM_SQUARES

*LSL constant*

```lsl
integer LIST_STAT_SUM_SQUARES = 7;
```

Constant groups: [ListStatisticsOperation](/constants/groups/ListStatisticsOperation/)

Calculates the sum of the squares of the numbers in a list.

```lsl
float sum_of_squares = llListStatistics( LIST_STAT_SUM_SQUARES, numList );
```

That is, for each number *N_i* in a list of *k* elements, it calculates *N_1\*N_1 + N_2\*N_2 + ... + N_k \* N_k*.

## See also

### Functions

- [llListStatistics](/functions/llListStatistics/)

---

*Source: [LIST STAT SUM SQUARES](https://wiki.secondlife.com/wiki/LIST_STAT_SUM_SQUARES) on the Second Life Wiki. Content from the Second Life Wiki article LIST STAT SUM SQUARES (revision 1194667, 2015-01-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/LIST_STAT_SUM_SQUARES/
