hamed12

15 Reputation

One Badge

5 years, 280 days

MaplePrimes Activity


These are replies submitted by hamed12

How do i plot this one:

x(t):=x[0](t)+`εx`[1](t)=sint-`εtsint`

`epsilon;` := .1;
t := 0 .. 30;
 

 restart; with(plots); with(DEtools); print(`output redirected...`); # input placeholder ode1 := diff(x(t), t) = y(t); print(`output redirected...`); # input placeholder ode2 := diff(y(t), t) = -x(t)+(1-x(t)^2)*y(t); print(`output redirected...`); # input placeholder MODEL := {ode1, ode2}; VARS := {x(t), y(t)}; domain := t; 0 .. 20; RANGE := x = -3 .. 3, y = -3 .. 3; COLORS := [yellow, green]; %; IC1 := [x(0) = .5, y(0) = .25]; IC2 := [x(0) = 2.5, y(0) = 3]; print(`output redirected...`); # input placeholder  %;                      [x(0) = 2.5, y(0) = 3]  DEtools; DEplot(MODEL, VARS, DOMAIN, RANGE, [IC1, IC2], stepsize = .1, arrows = THIN, linecolor = COLORS); %; Error, (in DEtools/DEplot) invalid range for independent variable  DEtools; DEplot(MODEL, VARS, DOMAIN, RANGE, [IC1, IC2], stepsize = .1, linecolor = COLORS, scene = [t, x]); %; Error, (in DEtools/DEplot) invalid range for independent variable

Page 1 of 1