Question: Reproducibility

Hi: Does anyone have any insight into the following: I have Maple programs that use the following pattern: restart; commands; . . . I run such a program and it runs perfectly. I then go back to the beginning, including the "restart" and run the SAME PROGRAM with NO CHANGES. It (sometimes) runs differently!! Still gives the same answer, but sometimes the order of elements is changed, sometimes variables have "-" signs outside brackets with the variables inside the brackets also changing sign. I can exit Maple, reload the program and it doesn't always do the same thing. This is not unique to one program - it happens a lot with different programs I have written. This makes it impossible to reliably write something that will always work. For example, if the answer I want comes back as the fifth element of a solution list one time and the third element another time, I've got to write a whole lot of unnecessary code just to locate the answer I want reliably. So, how do you restart Maple so that it runs reproducibly? Thanks for any insights.
Please Wait...