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 ExchangeNumerical 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