Solve the differential equation
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
(x+2x)^3dx+(y+2y)^3dy=0
0 Kommentare
Antworten (2)
Ameer Hamza
am 18 Jun. 2020
Bearbeitet: Ameer Hamza
am 18 Jun. 2020
Use ode45(). Try following code
xspan = [0 1];
ic = 1; % initial condition
[t, y_sol] = ode45(@odeFun, xspan, ic);
plot(t, y_sol);
legend({'y'});
function dydx = odeFun(x, y)
dydx = -(x/y).^3;
end
0 Kommentare
KSSV
am 18 Jun. 2020
syms x y(x)
ode = diff(y,x)+(x+2*x)^3/(y+2*y)^3==0 ;
sol = dsolve(ode) ;
celldisp(sol)
0 Kommentare
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!