Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

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.



  • Prev by Date: Re: Mathematica -> TeX
  • Next by Date: Re: Inverse of "PowerExpand"
  • Previous by thread: Re: MovieParametericPlot-3D
  • Next by thread: Re: Diff. Equations with "Changeable" Parameters