Previous Up Next

5.54.1  The Frobenius norm: frobenius_norm

The frobenius_norm command takes a matrix A as an argument.
frobenius_norm returns the Frobenius norm of the matrix; namely √i,j (A[i,j])2.
Input:

B := [[1,2,3],[3,-9,6],[4,5,6]]

then:

frobenius_norm(B)

Output:

sqrt(217)

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


Previous Up Next