Electric circuit analysis