Deal with overflow in exp using numpy

前端 未结 6 1899
你的背包
你的背包 2020-11-29 07:24

Using numpy, I have this definition of a function:

def powellBadlyScaled(X):
    f1 = 10**4 * X[0] * X[1] - 1
    f2 = numpy.exp(-numpy.float(X[0])) + numpy         


        
6条回答
提交回复
热议问题