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 comentario

KALYAN ACHARJYA
KALYAN ACHARJYA el 31 de Oct. de 2019
Editada: KALYAN ACHARJYA el 31 de Oct. de 2019
What you have tried so far? here reference link

Iniciar sesión para comentar.

 Respuesta aceptada

Alex Mcaulley
Alex Mcaulley el 31 de Oct. de 2019
Editada: Alex Mcaulley el 31 de Oct. de 2019
A = @(c) sqrt(m/(2*pi*k*T1))*exp(-m/(2*k*T1)*(c-c_bar1)^2)
q = integral(A,-inf,inf)

3 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 31 de Oct. de 2019

Comentada:

el 31 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by