NORM2

Returns the square root of the sum of the squares of the elements of a matrix.
The NORM2 function could also be written as SQRT(SUM
(N ** 2)) or SQRT(SSQ(N)), but these would execute slower than NORM2.

Format

NORM2 (M)

Argument

 
M
A matrix.

Example

The following example illustrates the use of the NORM2 function:
 
Function
NORM2({[1, 2], [3, 4]})
Result
5.47722 (SQRT(1**2 + 2**2 + 3**2 + 4**2))