Finding the resistivity of a wire