Aviod zero division error

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