Adams Basic Package
>
Adams View
>
View Function Builder
>
Design-Time Functions
>
Functions: R - S
> SSQ
SSQ
Returns the sum of the squares of the elements of a matrix.
Format
SSQ (M)
Argument
M
A matrix.
Example
The following example illustrates the use of the SSQ function:
Function
SSQ({[1, 2], [3, 4]})
Result
30 (1**2 + 2**2 + 3**2 + 4**2)
Learn more about matrix/array functions
.
This site works best with JavaScript enabled