Aviod zero division error

BTW,the negative power of zero is a math esteric problem.