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 Comment

What you have tried so far? here reference link

Sign in to comment.

 Accepted Answer

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

3 Comments

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)

Asked:

on 31 Oct 2019

Commented:

on 31 Oct 2019

Community Treasure Hunt

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

Start Hunting!