Section 2. Entering blocks of text
1. Open a new Maple worksheet. Press Command-T and type your name, press the [return] key and type the date. Press [return] and type "Mixing Text and Mathematics" (no quotes). Then press the [return] key one more time and type the following sentence:
This worksheet contains examples of text blocks (like this one) and execution groups containing input and output like the following.
2. Now press Command-J to obtain an input entry and enter the variable y as the following function of x:
.
Note that you will have to type
y := sin(x)/x;
then press the [return] key ([Enter] on a PC). We refer to this as "Enter and execute".
3. Before continuing use the mouse to click anywhere in the third text line at the top of the worksheet, "Mixing Text and ....". Then pop down the menu of paragraph and text styles on the left side of the Context bar and choose the paragraph style named Title.
4. Go back down the worksheet and click next to the new input prompt that appeared after the entry defining y as a function of x and define z as the derivative of y with respect to x by entering and executing
z := diff(y,x);
5. When the new execution group appears below the derivative formula for z, press Command-T to convert it to a text entry. Then type the following sentences:
z is the derivative of y. Both z and y are plotted below. Which one is which? How can you tell?
6. Press Command-J and graph y and z as functions of x by executing the entry
plot( [y,z], x=0..6);
7. Press Command-T once more (to convert the new execution group into a text entry) and type in your answers to the two questions asked above.
8. Save this worksheet with the title "My_2dn_wrksht".
9. Quit Maple.
10. Open the worksheet you just saved by double clicking on its icon.
12. Pull down the Edit menu and choose Remove Output/From Worksheet.
13. Pull down the Edit menu again and choose Execute/Worksheet. This puts the information in the worksheet back into the Maple kernel.
14. There should be a new execution group immediately following the graph. If the cursor is not at the input prompt, use the mouse to click next to the new prompt and press Command-delete thereby removing that empty execution group from the worksheet.
15. Now, with the mouse, click anywhere in the last text entry, press Command-J and, in the new execution group, define the variable Y as an antiderivative of z with the following entry
Y := int(z,x);
16. Press Command-T and type the following: Well, that wasn't hard. Now I now how to enter text and mathematics in Maple.
17. Pull down the File menu and choose Print Preview... . You will discover that the graph is very large causing the worksheet to be two pages long when printed. Dismiss the preview and make the graph small enough so the document prints to just one page. (Click on the graph and adjust its size by dragging the lower right corner.)
18.* Save your worksheet (Command-S) then print it.