Text this: An application of potential function in robot path planning and three optimized formulas for equivalent resistance