array.resistance function

Resistance between two arbitrary points on a regular lattice of unit resistors