Numerical integral using conditionally different functions for the same interval

1 回表示 (過去 30 日間)
Tworit Kumar Dash
Tworit Kumar Dash 2020 年 5 月 20 日
編集済み: Tworit Kumar Dash 2020 年 5 月 20 日
I want to integrate a function from -Inf to +Inf using complex plane with a deformred path to avoid the branch cut of square root function.
Ixx = @(Nu) (1/(4 .* pi^2) .* omega .* mu) .* pi/2 .* (2.*k0^2 - Nu.^2)/kz(Nu) .* I2(Nu) .* I2_2(Nu);
wpoints = [(-1-1j).*del, (1+1j).*del];
Exx = integral(Ixx, -100*beta_rhop, 100*beta_rhop, 'Waypoints', wpoints);
In the numerical integral of this kind (with a complex path of integration) I don't have any control on the independant variable. I want to use a different set of functions instead of I2(Nu) and I2_2(Nu) when beta_rhop == |Nu| . In other words, I want to use Ixx as a discontinuous function at points when beta_rhop = |Nu| . Is this possible?

回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by