circuit function

Mensurates a circuit given potentials of some nodes and current flow into the others