analysis of resistive circuits