python overflowError

计算pow函数出现溢出错误

math.pow((N*N),dvc)
OverflowError: math range error

解决方法:

用numpy.power代替