Analysis of electric circuits