sc02492

25 Reputation

2 Badges

16 years, 271 days

MaplePrimes Activity


These are replies submitted by sc02492

Joe, this is such an elegant and simple solution to my problem- I should have figured it out myself but have been looking at it too long.  Thanks very much for the help!

Steve

Joe, this is such an elegant and simple solution to my problem- I should have figured it out myself but have been looking at it too long.  Thanks very much for the help!

Steve

Sorry for the confusion.  Hopefully the complete ode1 line will make it this time:

ode1 := dsolve([g, S(0) = 1, q, R(0) = 1], [S(t), R(t)], numeric, events = [[t = 600, S(t) 
= 10^7], [t = 800, S(t) = 5*10^7]]);
 
Steve

 

Sorry, the line was cut off.  ode1 should read:

ode1 := dsolve([g, S(0) = 1, q, R(0) = 1], [S(t), R(t)], numeric, events = [[t = 600, S(t) = 
10^7], [t = 800, S(t) = 5*10^7]]);
 

Thanks

Thank you both for your answers!

Steve

Thank you both for your answers!

Steve

Clarification of above to avoid confusion:

It should read:

> roll := rand(0 .. 1);

> roll();

> s0 := %;                              

> roll();

> s1 := %; 

 

Thanks

Steve

Robert, that's exactly what I noticed- when k2 > k1, it does not resolve the curve for the reasons that you mentioned.  Unfortunately, I will need k2 to be larger than k1 for my purposes, so I need to find another way.

Preben, your solution looks like it will do the trick- I have Maple 14 and was looking at the "events" feature but wasn't quite sure how to use it.  Your example is very instructive and is much appreciated.  You also helped me before with a simple question about combining graphs- again thank you!  It makes a big difference having help like this.

Steve

Robert, that's exactly what I noticed- when k2 > k1, it does not resolve the curve for the reasons that you mentioned.  Unfortunately, I will need k2 to be larger than k1 for my purposes, so I need to find another way.

Preben, your solution looks like it will do the trick- I have Maple 14 and was looking at the "events" feature but wasn't quite sure how to use it.  Your example is very instructive and is much appreciated.  You also helped me before with a simple question about combining graphs- again thank you!  It makes a big difference having help like this.

Steve

Page 1 of 1