| Author |
Comment/Response |
Lyna
|
06/03/12 5:03pm
In Response To 'Re: Re: probleme with eventLocator method' --------- Hello All,
Thank you for your answer it really help me very much. but as i see the event locator method doesn't give the appropriate result. so i decided to use it deifferently.
i have defined 2 couples of equations (aller, et retour). i evaluate the event for eah way then i combine the two results.
my problem is that in the resolution of the ndsolve from event to event.
in each event i have an internal variation of a variable parameter "p" .
i didn't have the way to embeded two loops of while.
p = {1, 1.1};
While[p[[2]] < 1.2, z = zt[p[[2]], p[[1]], t0];
ss = Block[{tf = 0, xf = 0, yf = 0, dxf = 0},
Reap[
While[tf < 10, Sow[sol[p, tf, xf, yf, dxf]]]][[2, 1]];
p = {p[[2]], p[[2]] + z};
]]
the mathematica kernel shut down and doesn't give any rsult.
other problem is how to delete the vertical lines of piecewise.
Any suggestions
Thanks in advance
Regards
Attachment: aller retour with P.nb, URL: , |
|