Solving a third order ODE in MATLAB
31 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sergio Manzetti
le 9 Fév 2018
Modifié(e) : Sergio Manzetti
le 15 Fév 2018
Hi, MATLAB is quite about this command:
syms a h Y(x) g x B E T
D3Y = diff(Y, 3)
eqn = a.*D3Y -0.5*x^2*Y == (abs(Y))
D2Y = diff(Y, 2)
DY = diff(Y)
cond1 = Y(0) == 1;
cond2 = DY(0) == 0;
cond3 = D2Y(0) == 0
Y(x) = dsolve(eqn, cond1, cond2, cond3)
latex(Y(x))
Is there a limit here for solving it? Thanks
0 commentaires
Réponse acceptée
Karan Gill
le 12 Fév 2018
Do you not get this warning? If you got it, was the warning clear?
Warning: Unable to find explicit solution.
> In dsolve (line 201)
Y(x) =
[ empty sym ]
2 commentaires
Plus de réponses (3)
Sergio Manzetti
le 14 Fév 2018
2 commentaires
Karan Gill
le 14 Fév 2018
Modifié(e) : Karan Gill
le 14 Fév 2018
Is this what you tried? Didn't work for me.
Could you post your input to Wolfram?
Sergio Manzetti
le 15 Fév 2018
Modifié(e) : Sergio Manzetti
le 15 Fév 2018
3 commentaires
Karan Gill
le 15 Fév 2018
Thanks for catching that. I also noticed the third condition is different.
Sergio Manzetti
le 15 Fév 2018
2 commentaires
Karan Gill
le 15 Fév 2018
Thanks for the clarifications. I'll investigate. Note that cond3 is different in your two codes.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!