{VERSION 2 3 "IBM INTEL NT" "2.3" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 }{CSTYLE "" -1 256 "" 0 1 145 0 0 0 1 0 0 0 0 0 0 0 0 } {PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Heading 1" 0 3 1 {CSTYLE "" -1 -1 "" 1 18 0 0 0 0 0 1 0 0 0 0 0 0 0 }1 0 0 0 6 6 0 0 0 0 0 0 -1 0 }{PSTYLE "Title" 0 18 1 {CSTYLE "" -1 -1 "" 1 18 210 0 0 0 0 1 1 0 0 0 0 0 0 }3 0 0 -1 12 12 0 0 0 0 0 0 19 0 }} {SECT 0 {PARA 18 "" 0 "" {TEXT -1 11 "Using Maple" }}{PARA 0 "" 0 "" {TEXT -1 40 "This worksheet is designed to accompany " }{TEXT 256 87 " Introduction to Scientific Programming: Computational Problem Solving \+ Using Maple and C" }{TEXT -1 79 " by Joseph L. Zachary. In it, we exp lore the basics of using Maple worksheets." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 411 "Worksheets are typically divid ed into sections. Below, you should see a list of the three sections \+ that make up this worksheet. At the beginning of each section name is a box with a + sign in it. If you click on the + sign, it will turn \+ into a - sign and the contents of the section will appear. If you cli ck on the - sign, it will turn into a + section and the contents of th e section will be hidden again." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }} {SECT 1 {PARA 3 "" 0 "" {TEXT -1 17 "Using a Worksheet" }}{PARA 0 "" 0 "" {TEXT -1 368 "This is a Maple worksheet, through which you intera ct with Maple. There are four key elements to a worksheet: text (whic h gives information to the human reader but is ignored by Maple), comm ands (which request that Maple do some computatation), results (which \+ display Maple's response to your commands), and formatting aids (which make it easier to read a worksheet)." }}{PARA 0 "" 0 "" {TEXT -1 0 " " }}{PARA 0 "" 0 "" {TEXT -1 330 "You can see examples of text, comman ds, and formatting aids in this worksheet, but no results. To obtain \+ results, you must evaluate the commands that the worksheet contains. \+ To evaluate the command \"2+2;\" from below, click the mouse so that \+ the cursor (a vertical bar) is somewhere in the command and then press the Return key." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 6 "2 + 2;" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }} {PARA 0 "" 0 "" {TEXT -1 572 "Notice that when you evaluate a command, the cursor jumps ahead to the next command so that you can evaluate i t. By repeatedly pressing the Return key, you will eventually evaluat e all of the commands in the worksheet. But you don't have to do thin gs in the order dictated in the worksheet, and you can even change the commands that it contains. For example, instead of evaluating the co mmand below, move the mouse cursor back to the command above, change t he numbers that it contains (using the Backspace key to delete), and r eevaluate it (by pressing the Return key)." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 75 "The cursor will come back to th e command below, which you can then evaluate" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 10 "sqrt(9.0);" }}} {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 229 "Generall y speaking, Maple ignores any white space (spaces, tabs, or newlines) \+ that you insert into a command. For example, the following version of the prevoius command will work just the same, although it is much les s readable!" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 " " {MPLTEXT 1 0 80 "sqrt ( 9.0 \+ ) ; " }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }} {PARA 0 "" 0 "" {TEXT -1 231 "Of course, it won't do to put space just anywhere. You can't put it inside of a single number, and you can't \+ put it inside of a symbol. If you do that, Maple will treat your numb er (or symbol) as two or more numbers (or symbols)." }}{PARA 0 "" 0 " " {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 35 "sq rt \+ ( 9 . 0 ) ;" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 56 "You can even use more than one line to write a co mmand. " }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 32 "1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 +" }}{PARA 0 "> " 0 " " {MPLTEXT 1 0 28 "9 + 10 + 11 + 12 + 13 + 14 +" }}{PARA 0 "> " 0 "" {MPLTEXT 1 0 28 "15 + 16 + 17 + 18 + 19 + 20;" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 220 "If you press the Return \+ key without ending your command with a semicolon, Maple will display a nother \">\" prompt at the beginning of the next line. Only when you \+ have entered a semicolon will Maple evaluate your command." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{SECT 1 {PARA 3 "" 0 "" {TEXT -1 19 "Editing a Worksheet" }}{PARA 0 "" 0 "" {TEXT -1 195 "You can edit a worksheet in various ways. You can remov e text, commands, and results by selecting with the mouse and then cho osing the \"Cut\" option from the \"Edit\" menu at the top of the wind ow." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 34 "Tr y cutting out this line of text." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }} {PARA 0 "" 0 "" {TEXT -1 268 "You can delete a region of a worksheet-- an entire text area, an entire command, an entire result--by clicking \+ the mouse in that region and then choosing the \"Delete Paragraph\" fr om the \"Edit\" menu. Instead of evaluating the command below, try de leting it in this way." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 39 "Delete this command--don't evaluate it!" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 71 " When you're done that, try deleting this text area in the same fashion ." }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{SECT 1 {PARA 3 "" 0 "" {TEXT -1 20 "Creating a Worksheet" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 226 "There are many other options from the menu bar that you can experiment with. We'll turn now to a slightly different topic. So far you have been experimenting with a worksheet that we c reated. How do you create one yourself?" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 372 "When you first start Maple, you w ill be looking at a blank worksheet containing a single prompt, just l ike the one to below. To issue a command, place the cursor so that it follows the prompt and type the command. Don't forget the semicolon. When you type the \"Return\" key, the answer will be displayed, foll owed by a fresh prompt. Enter a command at the prompt below." }} {PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 1 " " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}{PARA 0 "" 0 " " {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 440 "Now you're ready to en ter the next command. There's one problem, however: how do you insert textual commentary that describes the command that you just entered? \+ To do this, select the square bracket that groups together the comman d and the result by placing the mouse over it and clicking once. When it is selected, it will be highlighted. Then choose the \"Text Input \" option from the \"Insert\" menu. Add a comment to the command abov e." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 527 "It is good practice to put comments, such as these, before each Maple co mmand that you issue. Think of a worksheet as a document that you are writing for someone else to read. It will be much easier for your re aders to understand what you did, and why you did it, if you include s ome explanations. It'll also make it much easier for you to understan d your own work the next time you look at it. Although it is a good i dea to insert simple comments as you work, you can always go back and \+ put in more informative ones later." }}{PARA 0 "" 0 "" {TEXT -1 0 "" } }{PARA 0 "" 0 "" {TEXT -1 603 "When you hand in Maple assignments, you will be handing in nicely formatted worksheets such as this one. You will, of course, be needing to save your worksheets. To do that, pul l down the \"File\" menu and choose the Save As...\" option. A dialog box will appear into which you must type the filename by which you wi sh to save the worksheet. You will need to type the full pathname und er which you wish to save the worksheet into the \"Selection\" box, an d then click on the \"Save\" option. Ask for help if you don't unders tand about pathnames--it is somewhat easier to demonstrate than it is \+ to explain." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 252 "Once you have saved a worksheet for the first time (or if you \+ read it in under the same name that you wish to save it), you can save it again by choosing the \"Save\" option from the \"File\" menu. Thi s option will do the save without asking you anything." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 295 "At this point you s hould experiment with creating your own worksheet from scratch. To ob tain a blank worksheet with which to experiment, choose the \"New\" op tion from the \"File\" menu. Experiment with inserting text, commands , and results. When you're done, save it away to your home directory. " }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}}}{MARK "0 0" 0 }{VIEWOPTS 1 1 0 1 1 1803 }