Diff. Equations with "Changeable" Parameters
- To: mathgroup at smc.vnet.net
- Subject: [mg51667] Diff. Equations with "Changeable" Parameters
- From: "Krunom Ilicevic" <krunom at hotmail.com>
- Date: Wed, 27 Oct 2004 23:44:48 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I have solved diff. equations in this kind of a way:
NDSolve[{x'[t]=y[t],y[0]=0}, {y'[t]=x+Sin[t]+c*y[t]},{x,y},{t,0,2Pi}]
and parameter c was 1, but how to write this algorithm if c is:
c=0, if y<=-1
c=1, if -1<y<1
c=2, if y>=1
How to include this variable parameter c in my NDSolve method?
Thanks.
- Follow-Ups:
- Re: Diff. Equations with "Changeable" Parameters
- From: DrBob <drbob@bigfoot.com>
- Re: Diff. Equations with "Changeable" Parameters