Guest User

Untitled

a guest
Nov 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. f[x_,y_]:=x-y+(x*y-x^3-x*y^2)/Sqrt[x^2 + y^2]
  2. g[x_,y_]:=x+y-(x^2+x^2*y+y^3)/Sqrt[x^2 + y^2]
  3.  
  4. Manipulate[
  5. Module[{sol =
  6. NDSolve[{x'[t]==f[x[t],y[t]],y'[t] == g[x[t],y[t]], x[0] == p[[1]],
  7. y[0] == p[[2]]}, t,{y,0,T}, {x, 0, T}]},
  8. ParametricPlot[Evaluate[{x[t], y[t]} /. sol], {t, 0, T},
  9. PlotRange -> {{-4, 4}, {-3, 3}}]],
  10. {{p, {2, 1}}, Locator}, {{T, 10}, 0, 100}]
Add Comment
Please, Sign In to add comment