DEVSQ function
Description
DEVSQ(range) computes the sum of the squares of differences from the mean of the values of the spreadsheet cells in the specified range.
The argument range can be a list of numbers, cell addresses, cell ranges (such as A1:A10).
Range can also be a matrix. In that case the function returns a matrix with one row and the same number of columns, with each element the DEVSQ of the corresponding column. If range is a row matrix, it is converted to a column matrix first.
The equation for DEVSQ is:
$$ \sum_{}^{}{(x-\bar{x})^2}$$