## Stop a loop under certain condition...

Hi, I'm having trouble trying to make a loop stop when a variable hits certain value. No, break doesn't help much as the code is intended to be executed w/ "execute the entire worksheet" command, and break only stops the calculation on this especific execution block (I'm using maple 18 btw).

Any ideas would be highly apreciated.

## how do I terminate the solve progress using time...

I want to  get   nonlinear equations solutions using 'solve',but i always meet that the program running long long time,i want to stop this 'solve' procedure giving a limit time.how do i.can you help me.thanks a lot.

## display value of integrer when stop test is verif...

Dear all

I want to display the value of k   for which the stop test is verified. Thanks for your help.

epsilon:=(y0,N)->evalf(abs(

testerror:=array(1..75);
for k from 2 by 2 to 50 do
testerror[k]:=data[RK3][k][2];
if testerror[k]<=0.0001 then break; end if; end do;

## How to define a new name in proc where I need to t...

Hi! PLEASE HELP ME.. I try to give a new name in my proc where it stops at the initial condition, ic. Somehow it gave me an output like

>Orbit:=proc(Map,ic,Nit)
local orbit,z,t:
orbit:=array(0..Nit);
z:=ic:
orbit[0]:=z;
for t to Nit (while z<>ic) ot t=1 do
orbit[t]:=z;
z:=Map(z):
orbit[t]:=z:od;
return[seq(orbit[t],t=0..Nit)];
end;

>Orbit (F,[1,0],20);
##

##I want to eliminate the orbit13 and so on. I tried to give a new name where for example per:=array(0..t). I want it stops at t and do not go until Nit. Can you help me?

I have asked this question before (2008) but no one answered. I just repeated my error and am still flummoxedflummoxed.

In early versions of Maple (Maple 1 Maple 3) one could halt a computation on the Mac by holding down the command key and the period; Maple would respond quickly. Now one can try that or click on the red hand in the tool bar and interrupt the computation but it doen not necessarily stop.

I inserted a print command in a procedure so that I culd...