Previous Up Next

6.50.1  The Frobenius norm: frobenius_norm

The Frobenius norm of a matrix A is √i,j ai,j2. The frobenius_norm command finds the Frobenius norm of a matrix.


Example.
Input:

frobenius_norm([[1,2,3],[3,-9,6],[4,5,6]])

Output:

217

since √12 + 22 + 32 + 32 + (−9)2 + 62 + 42 + 52 + 62 = √217.


Previous Up Next