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 Kommentar

KALYAN ACHARJYA
KALYAN ACHARJYA am 31 Okt. 2019
Bearbeitet: KALYAN ACHARJYA am 31 Okt. 2019
What you have tried so far? here reference link

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Alex Mcaulley
Alex Mcaulley am 31 Okt. 2019
Bearbeitet: Alex Mcaulley am 31 Okt. 2019

0 Stimmen

A = @(c) sqrt(m/(2*pi*k*T1))*exp(-m/(2*k*T1)*(c-c_bar1)^2)
q = integral(A,-inf,inf)

3 Kommentare

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 am 31 Okt. 2019
True @Cyrus ;)
ANUSAI R
ANUSAI R am 31 Okt. 2019
Thank you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by