First we find transpose of a matrix and then compare it with the original matrix. For a symmetric matrix A^T = A.
- Step 1 – Accepts a square matrix as input
- Step 2 – Create a transpose of a matrix and store it in an array
- Step 3 – Check if input matrix is equal to its transpose or not
If it is equal, then the input square matrix is symmetric.
Please find the program attached to find the matrices symmetricity.