p.current + m.current == 0 v_in == p.voltage - m.voltage i_out == p.current