Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Discontinuous differential equation' topicStudent Support Forum > General > Archives > "Discontinuous differential equation"

Next Comment >Help | Reply To Topic
Author Comment/Response
Ryan
10/13/06 01:34am

Hi

I want to simulate the following:

NDSolve[{x'[t]==-Sign[x[t]],x[0]==2},x[t],{t,0,3}]

Output is always diverging after t=2. Is there a way to make Mathematica simulate as what I expected? At least, solution should be chattering around x=0.

URL: ,

Subject (listing for 'Discontinuous differential equation')
Author Date Posted
Discontinuous differential equation Ryan 10/13/06 01:34am
Re: Discontinuous differential equation Peter Pein 10/20/06 10:40pm
Next Comment >Help | Reply To Topic