Integration by numerical methods

5 vues (au cours des 30 derniers jours)
P Rakesh Kumar Dora
P Rakesh Kumar Dora le 19 Oct 2020
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".

Réponse acceptée

Alan Stevens
Alan Stevens le 19 Oct 2020
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 commentaires
Alan Stevens
Alan Stevens le 19 Oct 2020
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 le 22 Oct 2020
thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by