Declare list elements as symbols sympy python -


i've got function returns list elements under conditions :

 m1=   [[1, 0], [0, 1]]  m2=   [[2, 0], [0, 2]] 

and declare m1 , m2 symbols containing indices, i.e m1[0] symbol [1,0], using sympy, unsuccesful in attempts far.

does have idea how this?

any appreciated!!

i guess want use symarray.

from sympy import symarray  m1 = symarray('', 2) m1[0] = [1, 0] 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -