------------------------------------------------------------------------- PHYS210 MAPLE 2 LAB SUMMARY Adding simple annotations to Maple Worksheets ------------------------------------------------------------------------- ************************************************************************ 1) Adding Xmaple to the launcher ************************************************************************ Use Dash to locate Maple16, then drag-and-drop the icon to the launcher. ************************************************************************ 2) Adding annotations to a worksheet (This information is also included in the Homework 2 handout) ************************************************************************ Start xmaple from the Dash (or from the command line should you wish) Type in the following three Maple commands: > a := evalf(Pi/8); > diff(cos(tan(x)), x); > plot(sin(x)); To create annotations, use the three icons located roughly under the ``Drawing'' label on the top menu bar. From right to left these are o An icon that resembles an hourglass---hovering the mouse over it displays the text ``Enclose the current selection in a document block, or create a new one'' o An icon representing the Maple prompt: ``Insert Maple Input after the current execution group'' NOTE: Execution groups can also be inserted before and after the cursor using Ctrl-k and Ctrl-j, respectively, or via Insert -> Execution Group -> ... from the top menu bar. o An upper case T: ``Insert plain text after the current execution group'' To insert a comment, position the cursor to the immediate right of the prompt on the line BEFORE the location where you want to do the insertion. Click on the hourglass icon, and then on the T. You can then type in plain text to create the annotation. Once the note (section heading, comment etc.) has been inserted, you can alter its appearance (font, font size, style etc.) by sweeping the text and using the icons and pulldowns immediately above the main input/output area. Since text blocks are always inserted AFTER the line on which the cursor is positioned, it is slightly troublesome to begin a worksheet with an annotation. One way to do so is as follows. First, insert an execution group before the initial command of the worksheet by positioning the cursor beside corresponding prompt and typing Ctrl-k. Using the above prescription, insert the text that is to appear at the beginning of the worksheet after the new execution group. Now delete the execution group before the annotation by repositioning the cursor beside the corresponding prompt, pressing and holding the Ctrl key and pressing the Delete key two times. ------------------------------------------------------------------------- EXERCISE: Exit the maple session (you do not have to save the worksheet), re-start maple, and retype the above three commands. Annotate the commands using the following descriptions. In each instance insert the comments BEFORE the corresponding command, and ensure that when you are done that there are no command prompts BEFORE the first annotation. Assign a value to a name Compute a derivative Make a simple plot ------------------------------------------------------------------------- Exit xmaple: you do not need to save the worksheet.