Ported voltageDrop for ipython implementation. Start to generalize.