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 Commento

Please do not close questions that have an Answer.

Accedi per commentare.

 Risposta accettata

Torsten
Torsten il 24 Ott 2018
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)

Più risposte (0)

Categorie

Scopri di più su Numerical Integration and Differential Equations in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by