Numerical Integration of a complex function with singularities

14 次查看(过去 30 天)
Hi all,
I've got a problem concerning the integration of the following function:
fun = @(s) (1-s.^2).^(1./2) .* (((1-s)/(1+s)).^(1i.*0.1103)) .* ((-1i.*(s./(sqrt(100.^2-s.^2))))./(u-s));
The integration limits are -b to b (given values). The variable "u" is used in a following integration with goes also from -b to b. For that following integration I created a for loop with lets u run in small steps from -b to b. After the for loop I use "trapz" to integrate the function. The problem is to find a solution for the first integral (function mentioned above). I tried quadgk and integral but I get always the warning:
Warning: Reached the limit on the maximum number of intervals in use. Approximate bound on error is 3.0e-06. The integral may not exist, or it may be difficult to approximate numerically. Increase MaxIntervalCount to 1514 to enable QUADGK to continue for another iteration.
Increasing the MaxIntervalCount doesnt help in this case. Has someone of you an idea?
Thank you all in advance!
  5 个评论
Torsten
Torsten 2015-10-29
What makes you think the integral exists ? I strongly doubt in it.
As you already noted, the function to be integrated has singularities at s=-1, s=+/- 100 and u=s ...
Best wishes
Torsten.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by