Just Enough Maple for CalculusWorksheet by Mike May, S.J. - maymk@slu.eduThis worksheet is intended to give you just enough Maple to let you run the Maple worksheets for Calculus. Executing sections:The Maple worksheets Weil contain executable lines where Maple does mathematics. These lines begin with an input prompt (a ">") and are in red. To execute those sections, place the cursor anywhere in the command section and hit the "enter" or "return" key. Maple will execute the code and move the cursor down to the next input section.Execute the code section below now.answer := 1 + 1;
answer;Notice that, in Maple, commands end with a semicolon and values are assigned to a variable with the ":=" symbol.Typing in commands:Since this is a math course, the worksheets you do will have exercises embedded in them. You need to be able to type in your own commands. At the input prompt below, enter the commandMayans := 1 + 2;to assign the value of 3 to the variable Mayans. (Notice that there is no space in Mayans.)For some of the exercises you will want to use a series of commands. This raises the 2 practical questions:1) How do you put more than one command line in a section with a single input prompt? (Hitting return executes the line.)2) How do you insert more input prompts in the middle a worksheet?You continue an input section to a second line by typing a shift-return.You insert a new input prompt by either going to the insert menu, selection execution group, after paragraph, or by typing flower-J, where "flower" is the mac command key.Enter the command sequence:answer1 := 1 +3;answer1;on two lines at the single cursor below. Then insert two execution groups below it and reenter the commands in separate execution groups.Adding text:When doing mathematics exercises, it is important to answer the question asked, rather than simply showing some uninterpreted computations. Raw Maple output will never be considered a sufficient answer. Thus you need to be able to add explanatory comments to your computations, even if it is simply, "The answer is ..."To add a text section, either insert an execution group and convert it to text with flower-t, or use the insert menu to insert a paragraph.Annotate your work in the previous section with the comment that "1 + 3 = 4".Cutting and Pasting:Some of the exercises involve several lines of code that follow an example with only minor modifications. Obviously you could retype everything, but that is too much work. The easier method is to highlight the material you want to copy, copy it with either the copy command from the edit menu or the flower-c key, move the cursor to where you want the material put, paste the material in with either the paste command from the edit menu or the flower-v key, edit the changes you wantCopy the two command line section that assigns a value to answer1 above. Paste it in below and modify it to assign a value to answer2.Saving and printing:When you start a prepared worksheet, you should get a warning message that the worksheet is locked and changes cannot be saved. Instead you should choose "save as" from the file menu, pick a new name for the worksheet (a name that identifies the worksheet as yours), and save your work. You should then print the worksheet so that you can turn it in.Sometimes you will have problems printing a Maple file. (This is most likely to happen if the file has lots of complicated graphics.) It is then useful to export the Maple file to another application and print from the other format. We will look at turning the worksheet into a web page that can be printed from a web browser. 1) Go to the desktop of your machine and make a new folder. Label it MapleForWeb.2) From Maple, go to the File menu and select "Export as, HTML..."3) Save the file in the folder with an appropriate name.4) Open the HTML file in a browser and print from there.The other convenient option is to save the Maple worksheet as a Word file. The trick is to know that RTF stands for Rich Text Format, the old name for the microsoft word format.1) Go to the desktop of your machine and make a new folder. Label it MapleForWord.2) From Maple, go to the File menu and select "Export as, RTM..."3) Save the file in the folder with an appropriate name.4) Open the file in Word and print from there.