from lcapy import Circuit
a = Circuit("""
V 1 0 {v(t)}; down
R1 1 2; right
L 2 3; right=1.5, i=i_L
R2 3 03; down=1.5, i=i{R2}, v=v_{R2}
W 0 0_3; right
W 3 3_a; right
C 3_a 0_4; down, i=i_C, v=v_C
W 0_3 0_4; right""")
ss = a.ss
printing of time domain representation is working fine:
ss.x
Matrix([[i_L(t)], [v_C(t)]])
but for laplace domain representation:
ss.X
it gives an Atribute error:
File c:\python\lib\site-packages\lcapy\statespace.py:70, in StateSpace.X(self)
67 @property
68 def X(self):
69 """Laplace transform of state-variable vector."""
---> 70 return LaplaceDomainMatrix(self.x.laplace())
AttributeError: 'Vector' object has no attribute 'laplace'
From the doc https://lcapy.readthedocs.io/en/latest/circuits.html#state-space-analysis
After creating the circuit:
printing of time domain representation is working fine:
but for laplace domain representation:
it gives an Atribute error:
used version: