I want to pass complex number to bassel function in .net as you can see :
Complex[,] F_k = new Complex[M, N];
F_k[m,n] = ((2 * Bessel.J(1, new Complex(1, -1) * (2 * 0.0110/ 122))));
but I get this error :
Error CS1503 Argument 2: cannot convert from 'System.Numerics.Complex' to 'double'
Is any Bessel function in .NET which can accept complex types?
Since you mention Matlab, here is a way.
The Bessel J function can be expressed in terms of the
0F1generalized hypergeometric function:Here is a demonstration with R:
The generalized hypergeometric functions are available for Matlab.
I don't speak Matlab, but I think
0F1(beta, y)should behypergeom([], beta, y).