Previous Up Next

15.4.1  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

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

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


Previous Up Next