Algebraic construction of a state space system

25 Views Asked by At

How could a state space system be automatically constructed based on the knowledge of underlying circuit?

E.g. -

enter image description here

$$ \dot{v_c}=\frac{-v_c}{CR}+\frac{V_{dc}}{CR} $$

That is, the representation is easy to figure out by hand. But what would be the computer-based, algorithmic way?