Using the second approach you can execute all the commands in the session or ones in a block that you select. Part c of session 4.1 shows that we can continue a session that is opened after it has been saved. The selection Maple Text will give a new session that you can execute as seen on the left in the next figure. The selection Text will produce just text in the Maple window as seen on the right in the same figure. You must again move the cursor to the line you want executed and then type Return in the session.
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.