Integration by numerical methods

조회 수: 7 (최근 30일)
P Rakesh Kumar Dora
P Rakesh Kumar Dora 2020년 10월 19일
댓글: P Rakesh Kumar Dora 2020년 10월 22일
Hi, please someone can help how to compute the following integral numerically, since analytic integration is not possible for all values of "z". Here " z" lies in between "0" to "1".

채택된 답변

Alan Stevens
Alan Stevens 2020년 10월 19일
Something like this:
z = 0.01:0.01:1;
I = zeros(1,numel(z));
for i = 1:numel(z)
I(i) = integral(@(x) sqrt(x)./(exp(x)./z(i) - 1),0,inf);
end
plot(z,I),grid
  댓글 수: 3
Alan Stevens
Alan Stevens 2020년 10월 19일
Wolfram Alpha gives a result in terms of a function Li. MATLAB doesn't seem to have that function (unless it is there under another name!).
P Rakesh Kumar Dora
P Rakesh Kumar Dora 2020년 10월 22일
thanks

댓글을 달려면 로그인하십시오.

추가 답변 (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