HOW TO SOLVE THIS INTEGRATION?

I HAVE WRITTEN CODE LIKE THIS
%basic function
function=P(h-y)+T.*exp(-k.*y);
%Apply squareroot
f_1=sqrt(function);
int=integral(f_1 );
BUT I HAVE FACING PROBLEM PLS HELP ME

1 comentario

Walter Roberson
Walter Roberson el 25 de Oct. de 2018
Please do not close questions that have an Answer.

Iniciar sesión para comentar.

 Respuesta aceptada

Torsten
Torsten el 24 de Oct. de 2018

0 votos

P = 2.0;
h = 1.0;
T = 3.0;
k = 0.01;
fun = @(y)sqrt(P*(h-y)+T*exp(-k*y));
ylow = 0.0;
yhigh = 1.0;
sol = integral(fun,ylow,yhigh)

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Oct. de 2018

Editada:

el 25 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by