Submitted by gingergine on Sun, 02/07/2010 - 12:24
How do I stop a simulation, or say, yield a 0 value, when a critical value (e.g. 100 is reached?). For my simulation, I am hoping to plot the degradation of glucose. Once the amount of glucose (y) has been depleted, i.e. y=0, the graph becomes really erratic (I assume because thats the the equation is illogical when y < 0 i.e. impossible). How do I make the simulation stop at that point? Thanks