Computer Science, asked by RGOUHPITA, 10 months ago

python program to determine the type of matrices like idempotent,involutory,orthogonal,symmetric skew symmetric and all the other type ther in jee syllabus . Please help me in this and give a valid ans
Thank You ​

Answers

Answered by devendermadaan90
0

Answer:

Explain the role of background illumination in sense of vision by giving an example. What fundamental characteristic property of sensory systems can be deduced from this exam

Explanation:

Explain the role of background illumination in sense of vision by giving

Answered by Anonymous
1

Explanation:

# Simple Python code for check a matrix is

# symmetric or not.

# Fills transpose of mat[N][N] in tr[N][N]

def transpose(mat, tr, N):

for i in range(N):

for j in range(N):

tr[i][j] = mat[j][i]

# Returns true if mat[N][N] is symmetric, else false

def isSymmetric(mat, N):

tr = [ [0 for j in range(len(mat[0])) ] for i in range(len(mat)) ]

transpose(mat, tr, N)

for i in range(N):

for j in range(N):

if (mat[i][j] != tr[i][j]):

return False

return True

# Driver code

mat = [ [ 1, 3, 5 ], [ 3, 2, 4 ], [ 5, 4, 1 ] ]

if (isSymmetric(mat, 3)):

print "Yes"

else:

print "No"

Similar questions