unable to solve with respect to y
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Did you mean:
>> ode=(x^2*diff(y,x,2))-(3*x*diff(y,x,1))+(3*y)==(2*x^4(exp^x))
ode=(x^2*diff(y,x,2))-(3*x*diff(y,x,1))+(3*y)==(2*x^4(exp^x))
0 commentaires
Réponses (1)
Star Strider
le 6 Mai 2021
Try this —
syms s x y(x) y0 Dy0 C1 C2
Dy = diff(y);
D2y = diff(Dy);
ode=(x^2*D2y)-(3*x*Dy)+(3*y)==(2*x^4*(exp(x)))
y(x,C1,C2) = dsolve(ode)
figure
fplot(y(x, 1, 2), [0 1])
I will let you compare your code to my correcctions to understand the reason this version works.
(I believe is and is , however it is not possible to define them directly, for some reason.)
0 commentaires
Voir également
Catégories
En savoir plus sur Number Theory dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!