ashley2

5 Reputation

One Badge

5 years, 122 days

MaplePrimes Activity


These are questions asked by ashley2

Hi! 

 

I'm having a weird issue. :( 

DEplot command worked when I initially ran the executed it, but then when I executed the entire worksheet, it didn't plot. Instead I just get this output. 

 

This is the entire worksheet so far without the output. 

 

If someone could please help me, I would greatly appreciate it!!!!!

 


restart;
with(DEtools);

eq1 := diff(y(x), x) = 3*x*y(x);

dsolve(eq1, y(x));

ini1 := y(0) = 3;

dsolve({eq1, ini1}, y(x));

ini2 := y(1) = -3;

dsolve({eq1, ini2}, y(x));

eq2 := y(x)*diff(y(x), x) = -x;

dsolve(eq2, y(x));

dsolve({eq2, ini1}, y(x));

restart;
with(plots);

eq := diff(y(x), x) = 3*x*y(x);

ini := y(0) = 5;


dsolve({eq, ini}, y(x));




sol := rhs(%);

plot(sol, x = -2 .. 2, y = 0 .. 10);
DEplot(eq, y(x), x = -2 .. 2, y = 0 .. 10, [[ini]]);





 

Page 1 of 1