Numerical Integration of scalar function

4 visualizaciones (últimos 30 días)
Dimitrios Gerontitis
Dimitrios Gerontitis el 27 de Feb. de 2019
Comentada: Dimitrios Gerontitis el 1 de Mzo. de 2019
Hi Dear researchers. I want to calculate numerically the integral f(z)=exp(i*I*pi*z+cos(z)) where n eisai a matrix. i am using the above command
function out=I1mn(g,N,L,d,ai,si)
M=length(ai);
I=-N:N;
I=I(ones(2*N+1,1),:);
I=I.'-I;
fp=(@(z,n)exp(j*2*pi*n*z+(g)*(d*cos*2*pi*z/L))));
out=quadv(@(z)fp(z,I),ai,ai+si)
but when i execute my code i take the above message
Warning:Maximum function count exceeded; singularity likely.
>in quadv
in I1mn
How i can solve this problem to take good results
With best Regards DImitrios Gerontitis.
  6 comentarios
Jan
Jan el 27 de Feb. de 2019
@Dimitrios: Did you see my comment?
Dimitrios Gerontitis
Dimitrios Gerontitis el 1 de Mzo. de 2019
i find the solution with the command integral(fun,0,1,'ArrayValue',true)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by