I have this 10x10 matrix, want to find the inverse matrix next. The elements are [q11,q12,q13,q14,q15,q21,q22,q23,q24,q25]. Each element can take the value 0 or 1. The error: TypeError: 'sage.symbolic.expression.Expression' object is not iterable.

asked 2022-04-15 16:34:00 +0200

the code:

var('q11,q12,q13,q14,q15,q21,q22,q23,q24,q25')

(q11,q12,q13,q14,q15,q21,q22,q23,q24,q25)

q11 == {0,1}, q12 == {0,1}, q13 == {0,1}, q14 == {0,1}, q15 == {0,1}, q21 == {0,1}, q22 == {0,1}, q23 == {0,1}, q24 == {0,1}, q25 == {0,1}

m=matrix(SR,10,10,[q11,q12,q13,q14,q15,q21,q22,q23,q24,q25]);

m

edit retag flag offensive close merge delete

Comments

2

A 10x10 matrix has 100 entries, you only provides 10 of them. Could you please make the structure of your matrix more explicit ?

tmonteil gravatar imagetmonteil ( 2022-04-15 16:43:15 +0200 )edit