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
Post a Comment