You will write the transpose of a matrix, a test for a symmetric matrix, and the skew-symmetric part of a square matrix. A matrix is a list of rows. The checker tests many matrices.
The idea. The entry in row , column of is A[j][i]. A square matrix is symmetric when it equals its transpose. The skew-symmetric part has the entry in row , column .
Your tasks.
transpose(A). Return the transpose as a list of rows.is_symmetric(A). Return True or False.skew_part(A). Return the skew-symmetric part of a square matrix.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…