Numerical integration. Integral depends on its previous path.

조회 수: 1 (최근 30일)
Dimitar
Dimitar 2014년 3월 4일
편집: Dimitar 2014년 3월 5일
I would like to solve numerically an integral than depends on its previous path. Integral 7.14 from the attached file.
Are this kind of integrals solved with such loops?
Thank you.
z = 0:1/1000:10^-2
dz = z(2)-z(1); %integration step
sigma = 1;
q=0; %Integral value at z=0
for rr = 1:length(z)
fun = @(z) sigma*((10^4-exp(q))/((10^4+exp(q))));
q = integral(fun,0,x(rr),'ArrayValued',true);
end
q

답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by