Numerical Integration of a complex function with singularities

13 visualizaciones (últimos 30 días)
MatzeE
MatzeE el 27 de Oct. de 2015
Comentada: Torsten el 29 de Oct. de 2015
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 comentarios
MatzeE
MatzeE el 29 de Oct. de 2015
Update: The problem still exists
Torsten
Torsten el 29 de Oct. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by