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>
相關文章
相關標籤/搜索