# Sympy Python S-domain matrix inversion

I am stuck up with S-domain matrix inversion using sympy and I need some guidance.

I am attaching the code.

import sympy
S = sympy.Symbol(‘s’)

Zb=Rb(Rb1+SLb)/(Rb+Rb1+SLb)*

Y00=(S(CE+CC)+1/(RE+RC+SLC))t**2
Y01=-(SCC+1/(RE+RC+S
LC))t**2
Y10=Y01
Y11=(SCC+1/(RE+RC+SLC)+SCp+1/(Rp+SLp))t**2
Y12=Y21=-t**2/(Rp+SLp)

Y23=Y32=-1/(1/(SCf)+S*(L1+M))-1/(S*(L2+M))*
Y22=sympy.simplify(1/(SLm)+1/Rm+(1/(Rp+SLp))t**2+1/(1/(SCf)+S(L1+M))+1/(S*(L2+M))+1/Zb)*
Y33=1/(1/(SCf)+S*(L1+M))+1/(S*(L2+M))+1/(Rf-SM)
Y02=Y03=Y13=Y20=Y30=Y31=0.0
row1 = [Y00, Y01,Y02,Y03]
row2 = [Y10, Y11, Y12, Y13]
row3 = [Y20, Y21, Y22, Y23]
row4 = [Y30, Y31, Y32, Y33]
list_of_lists = [row1,

• ``````            row2,*
``````
• ``````            row3,*
``````
• ``````            row4]*
``````

G = sympy.Matrix(list_of_lists)

I=[S*C1*t, 0, 0, 0]
I=sympy.Matrix(I)
print(G)
Z=sympy.simplify(G.inv())

Z=sympy.simplify(G.inv()) is not being executed. Tried with kernel restart.

Request your kind help in this regard.

Regards