我正在尝试计算像这篇文章中定义的上不完全伽马函数。如果我使用
from scipy.special import gamma,gammainc
from numpy import linspace
a = 0
z = (2+3j)*np.linspace(0,10)
gamma(a)*(1-gammainc(a,z))
z
我得到一个错误的复数向量在哪里
TypeError: ufunc 'gammainc' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
是否有替代功能来进行计算?Gamma
当我尝试使用 WolframAlpha 的函数执行此操作时,似乎没有问题。