Numerical Integration of a complex function with singularities

3 views (last 30 days)
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 Comments
Torsten
Torsten on 29 Oct 2015
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!