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

Walter Roberson
Walter Roberson 2018년 10월 25일
Please do not close questions that have an Answer.

댓글을 달려면 로그인하십시오.

 채택된 답변

Torsten
Torsten 2018년 10월 24일

0 개 추천

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)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

질문:

2018년 10월 24일

편집:

2018년 10월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by