Numerical integral using conditionally different functions for the same interval

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 个)

类别

帮助中心File Exchange 中查找有关 Contour Plots 的更多信息

产品

版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by