I am trying to define this function using hypergeometric confluent function in the scipy.special library:
def Fl(x,l,p):
F=sc.hyp1f1(l+1-(1j*p),2*(l+1),-2*1j*x)
s=sc.gamma(l+1+(1j*p))/math.gamma(2*(l+1))
d=cmath.exp((math.pi*p)/2)*(2**l)*(x**(l+1))*cmath.exp((1j*x)+(1j*sigl(l)))
F1=F*s*d
return F1
But getting error:
36 def Fl(x,l,p):
---> 37 F=sc.hyp1f1(l+1-(1j*p),2*(l+1),-2*1j*x)
38 s=sc.gamma(l+1+(1j*p))/math.gamma(2*(l+1))
39 d=cmath.exp((math.pi*p)/2)*(2**l)*(x**(l+1))*cmath.exp((1j*x)+(1j*sigl(l)))
TypeError: ufunc 'hyp1f1' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Can someone please help me from figuring out what the problem is? What are the kind of inputs this function is supposed to take?