Evaluate a Hankel integral

10 ビュー (過去 30 日間)
Samuel Santos
Samuel Santos 2020 年 4 月 6 日
コメント済み: Ameer Hamza 2020 年 4 月 7 日
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.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 6 日
Try this
k = 2;
nu = 0;
f=@(x) (besselh(nu,k,x)).*(exp(1i*x));
result = integral(f, 0, pi/2)
  2 件のコメント
Samuel Santos
Samuel Santos 2020 年 4 月 7 日
Thanks! You rock!
Ameer Hamza
Ameer Hamza 2020 年 4 月 7 日
Glad to be of help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBessel functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by