Numerical integral using conditionally different functions for the same interval
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!