Investigation into the resistance of a wire