In [1]:
from lcapy import Circuit, s
cct = Circuit("""
V1 1 0 {u(t)}; down
R1 1 2 4; right=1.5
C1 2 3 0.1; down=1.5
W1 0 3; right
""")
cct.draw()
In [2]:
cct[2].V(s)
Out[2]:
In [3]:
cct[2].v
Out[3]:
In [4]:
%matplotlib inline
ax = cct[2].v.plot()
In [5]:
ax = cct[2].v.plot()
In [6]:
ax = cct.R1.i.plot()
In [7]:
cct.s_model().draw()
In [8]:
cct[2].V(s).ZPK()
Out[8]:
In [9]:
cct[2].V(s).poles()
Out[9]:
In [12]:
cct[2].V(s).poles(aslist=True)
Out[12]:
In [10]:
cct[2].V(s).zeros()
Out[10]:
In [11]:
ax =cct[2].V(s).plot()