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 Sune
Alex Sune am 31 Okt. 2019
Bearbeitet: Alex Sune 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 Sune
Alex Sune 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)

Kategorien

Mehr zu Installing Products finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 31 Okt. 2019

Kommentiert:

am 31 Okt. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by