Evaluate a Hankel integral

10 visualizaciones (últimos 30 días)
Samuel Santos
Samuel Santos el 6 de Abr. de 2020
Comentada: Ameer Hamza el 7 de Abr. de 2020
Hey folks,
I've been working on Hankel Function for a spherical electromagnetic field. However, I got a problem in solving a Hankel Function integral. See my code down below:
k = 2;
nu = 0;
syms x
f=@(x) (besselh(nu,k,x))*(e^(ix));
vpaintegral(f,x,0,pi/2)
Then, I got the following error: "Undefined function 'besselh' for input arguments of type 'sym'."
I appreciate any idea you might have.
Thanks in advance.

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 6 de Abr. de 2020
Try this
k = 2;
nu = 0;
f=@(x) (besselh(nu,k,x)).*(exp(1i*x));
result = integral(f, 0, pi/2)
  2 comentarios
Samuel Santos
Samuel Santos el 7 de Abr. de 2020
Thanks! You rock!
Ameer Hamza
Ameer Hamza el 7 de Abr. de 2020
Glad to be of help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Bessel functions en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by