Question: How can I nestle these problems into an if statement?

Hi there,

Relatively new to maple (and programming all together). I am looking to try and make an if statement that performs several checks but I do not know which order to put them in.

 

Essentially I am trying to start out with i=1, max(Q)>0 and then perform a function, then add 1 to i and run it back through the test again. When my function changes from max(Q)>0 to max(Q)<=0 then I will have found a solution but only if i<330.

I am also unsure if I should put the test for i>330 before or after max(Q) test.


Thank you for any help

 

 

Please Wait...