python scipy.fsolve解非线性方程,如何解决程序报错,OverflowError: (34, 'Result too large')

代码: from scipy.optimize import fsolve import math m = 1.2764 def func(x): return (4 * x * math.gamma(x) ** 2 / math.pi / math.gamma(x + 0.5) ** 2 - m) v21 = fsolve(func, 0.01) print(v21) 问题:解非线性方程,当m>
相关文章
相关标签/搜索