Patwary

15 Reputation

0 Badges

0 years, 64 days

MaplePrimes Activity


These are questions asked by Patwary

Restart

eqn1 := diff(x(t), t) = x(t)*(2-(1/20)*x(t))-x(t-tau)*y(t)/(x(t)+10)-10;

eqn2 := diff(y(t), t) = y(t)*(x(t)/(x(t)+10)-2/3);

bc := x(0) = 40, y(0) = 16,tau=0;

sol := dsolve({bc, eqn1, eqn2}, numeric);

plots[odeplot](sol, 0 .. 10);

I got the plot Vertically x and horizontally t but i need vertically y and horizontally x, Please help me, how can i write the code for ploting, thanks in advance.

restart;
ddesys := {diff(pred(t), t) = pred(t)*[prey(t)/(prey(t)+10)-2/3], diff(prey(t), t) = prey(t)*[2-(1/20)*prey(t-tau)]-prey(t)*[pred(t)/(prey(t)+10)]-10, pred(0) = 1, prey(0) = 1};
 

dsn := dsolve[eval(ddesys, tau = 0)];
plots[odeplot](dsn, [[t, prey(t), color = red], [t, pred(t), color = blue]], 0 .. 300, legend = [prey, pred], labels = [t, ""]);
Error, (in plots/odeplot) input is not a valid dsolve/numeric solution 

I do not understand what i mistake, please help me regarding this issue, thanks in advance

Page 1 of 1