You will find that you have created a file called ex1.mws that includes font information as well as the instructions in an unreadable form. This file may be reloaded into a Maple session by using the Open option in the File menu. For the purposes of exporting text files to be used in later Maple sessions, try to use Maple Text. This file may be reloaded in a new Maple session by selecting the Open option from the File menu. You must again move the cursor to the line you want executed and then type Return.
Programs are nothing more than sequences of instructions which are stored in a file.
If we read them into a Maple session, the instructions may be selected and executed as stored. For loops incorporate a counter variable with delimiters from , by , and to to set the range and step for the counter. A simple example demonstrates generating a table of trigonometric values. In order to associate arguments with the program, the proc heading must be used in the definition and the program must have an end command to terminate it. The whole program could be typed in as a single line, but it is simpler to use lines to see the various parts.