MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

NDSolve problem with switching equations


Hello, everyone.

I am trying to solve a switching ND problem using NDSolve. Specifically,
suppose the system equation is

y1'[t]==y2;
y2'[t]==1000(1-y1^2)y2-y1;

y1(0)==0;y2(0)==1;

Then every half a second (0.5s), the system equation transforms to

 y1'[t]==y2;
y2'[t]==1000(1+y1^2)y2;

and then, after 0.5s, it transforms back again.

How to address this problem?

Thank you!

haibo


  • Prev by Date: printing
  • Next by Date: Export Dynamic Matrix to XLS
  • Previous by thread: Re: printing
  • Next by thread: Re: NDSolve problem with switching equations