Question: Nested loop problem

I have to vary two variables A & B. For a fixed A, if I vary B such that l1 and l2 is positive, then I need the min value of B for which ((l1>0) and (l2>0)) 

. In such a way I need the list of A & B.

restart; printlevel := 0 

for A  from .1 by .01 to 3 do  
 for B  from .1 by .01 to 3 do
l1:=(exp(B)-A)-1
l2:=(exp(B)-A/2)-1.5

end do

if ((l1>0) and (l2>0)) then print(A,min(B)) end if

end do; 

Please Wait...