Which is the most accurate way to solve these equations?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Davide Cannavacciuolo
am 6 Feb. 2023
Kommentiert: Davide Cannavacciuolo
am 6 Feb. 2023
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1285745/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1285750/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1285755/image.png)
Where for semplicity A, B, E can be assumed = 1. u, v and w are velocity components and t is time.
Also intial contitions can be assumed:
u(0)=0
v(0)=0
w(0)=0
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 6 Feb. 2023
"Which is the most accurate way to solve these equations?"
Generally, the most accurate way to solve any equation is analytically, if it can be solved analytically.
Using symbolic math toolbox -
syms u(t) v(t) w(t) A B E F
eq1 = diff(u,t)+A*B*w(t)*sin(F*t)==0;
eq2 = diff(v,t)==0;
eq3 = diff(w,t)-sin(F*t)*u(t)-A*E*sin(F*t)==0;
con1 = u(0)==0;
con2 = v(0)==0;
con3 = w(0)==0;
sol=dsolve([eq1 eq2 eq3],[con1 con2 con3]);
U(t)=sol.u
V(t)=sol.v
W(t)=sol.w
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!