この投稿のように定義された上部不完全ガンマ関数を計算しようとしています。私が使用する場合
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の関数でやってみると問題なさそうです。