MATLAB Answers

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

3 views (last 30 days)
ANUSAI R on 31 Oct 2019
Commented: ANUSAI R on 31 Oct 2019
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 Comment

KALYAN ACHARJYA on 31 Oct 2019
What you have tried so far? here reference link

Sign in to comment.

Accepted Answer

Alex Mcaulley
Alex Mcaulley on 31 Oct 2019
Edited: Alex Mcaulley on 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)


Cyrus Tirband
Cyrus Tirband on 31 Oct 2019
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)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!