initial value problem integration

7 ビュー (過去 30 日間)
Nisrina Younes
Nisrina Younes 2022 年 11 月 18 日
編集済み: Torsten 2022 年 11 月 18 日
How do I solve this using MATLAB with initial condition h(0)=6 to find the value of t

回答 (1 件)

Torsten
Torsten 2022 年 11 月 18 日
編集済み: Torsten 2022 年 11 月 18 日
You get an implicit equation in h that must be solved numerically for h for a given value of t:
syms h t
f = (-9.5883*h^5+110.5*h^4-340.17*h^3+124.7*h^2+2021.7*h)/sqrt(2*9.81*(h+1));
F = int(f,h,6,h);
G = -pi*0.25^2/4*t;
h50000 = vpasolve(F==subs(G,t,50000),h,6)
h50000 = 
2.828550700405812159269874937196
But finding t for a given value of h is simple:
t50000 = solve(subs(F,h,h50000)==G,t)
t50000 = 
50000.0

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by