# Algebraic construction of a state space system

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

E.g. -

$$\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?

• You may want to start here. – Fabio Somenzi Oct 19 '18 at 19:04
• Did you heard about the software Spice Simulator? – Cesareo Oct 19 '18 at 19:38
• @Cesareo Of course I have - use it almost daily. But I am looking to build a state-space, switched SPICE. – SunnyBoyNY Oct 19 '18 at 20:57