Integration fo function A(c) from -inf to +inf

A(c)= sqrt(m/(2*pi*k*T1))*exp(-m/(2*k*T1)*(c-c_bar1)^2)
where, m , k, T1, c_bar1 are known.

1 commentaire

KALYAN ACHARJYA
KALYAN ACHARJYA le 31 Oct 2019
Modifié(e) : KALYAN ACHARJYA le 31 Oct 2019
What you have tried so far? here reference link

Connectez-vous pour commenter.

 Réponse acceptée

Alex Mcaulley
Alex Mcaulley le 31 Oct 2019
Modifié(e) : Alex Mcaulley le 31 Oct 2019
A = @(c) sqrt(m/(2*pi*k*T1))*exp(-m/(2*k*T1)*(c-c_bar1)^2)
q = integral(A,-inf,inf)

3 commentaires

Will not work if you don't use point-wise exponentiation for the last part:
A = @(c) sqrt(m/(2*pi*k*T1))*exp(-m/(2*k*T1)*(c-c_bar1).^2)
Alex Mcaulley
Alex Mcaulley le 31 Oct 2019
True @Cyrus ;)
ANUSAI R
ANUSAI R le 31 Oct 2019
Thank you.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Installing Products dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by