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 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 10 月 31 日
編集済み: KALYAN ACHARJYA 2019 年 10 月 31 日
What you have tried so far? here reference link

サインインしてコメントする。

 採用された回答

Alex Mcaulley
Alex Mcaulley 2019 年 10 月 31 日
編集済み: Alex Mcaulley 2019 年 10 月 31 日

0 投票

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

3 件のコメント

Cyrus Tirband
Cyrus Tirband 2019 年 10 月 31 日
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 2019 年 10 月 31 日
True @Cyrus ;)
ANUSAI R
ANUSAI R 2019 年 10 月 31 日
Thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

質問済み:

2019 年 10 月 31 日

コメント済み:

2019 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by