Getting Started with

Maple 6

Math 3, Fall 2000


 

Maple is an example of what is called a Computer Algebra System (CAS). Other examples are Mathematica and Derive. These systems are changing the way scientists, engineers, and mathematicians do mathematics. As we shall see, they allow us to do algebra and symbolic manipulations by computer. They also do arithmetic, draw graphs, and of special importance to calculus students, they do derivatives and integrals.

Only a few years ago, we had to write programs in BASIC to do the things with the computer in Math 3 that this year we will do with the aid of Maple. A one-line Maple command will often replace ten lines of BASIC code. The objective though is the same: we want to be able to concentrate on the mathematics of the calculus without being overburdened with numerical and symbolic calculations. We now can easily do calculations with a CAS that are virtually impossible with pencil and paper.

Do you remember how to calculate the square root of 73 by hand? Probably not. The reason is that we now can get a good approximation to with an inexpensive calculator. Removing the calculational burden frees us to think about square roots without the extra baggage of the calculational algorithm. This is an elementary example of the kind of advantages that a CAS gives. In Maple, we write

evalf(sqrt(73));

if we want the decimal result 8.544003745 to ten significant figures, and we write

evalf(sqrt(73),100);

if we want it to one hundred:

8.54400374531753116787164832623970643459445532953328224190865125377 1648819327298381080972030107009430

 

Getting Started: Putting Maple onto your Computer

To get started you need to get Maple onto your computer. For Mac users, you will do this by dragging a folder from PUBLIC that contains a keyserved version of the necessary software. Look on PUBLIC and open successively the folders:

(i) Licensed Software

(ii) KeyServer Controlled Software

(iii) Limited Support

(iii) Maple

(iv) Maple 6

You will find there three files–one named ReadMe, a second named Maple 6 Installer, and a third file named OpenGL Install. You should drag the ReadMe to your hard disk. Then read the READ ME! file and follow the instructions for your machine.

If you have a Windows computer, you will need to get Maple from Wilson, the fileserver that contains the keyserver software, and the keyserved applications that run on Windows 95/98/2000 machines. On Wilson open successively the folders:

(i) Public Files

(ii) Licensed Software

(iii) Key Served Software

(iv) Limited Support

(v) Maple

(vi) Version 6

Double click the setup.exe file and answer the questions as they appear on the screen.

At the end of the installation process you will have a folder on your disk named Maple 6. We will refer to this folder as "The Maple folder". Inside the Maple folder is the Maple application itself named Maple 6 § on a Macintosh and wmaple.exe on a Windows computer, and a number of folders that contain libraries and examples. One particular folder that we want to call to your attention is named "lib". It is the standard Maple library of routines that Maple uses. In the next section below, we explain how to put in this "lib" folder the "math3.m" file that has been developed here at Dartmouth especially for calculus students. We will say more about using the "math3.m" file and other library files as we need them.

Now you should be able to start up Maple so long as you are connected to the Dartmouth Network (for keyserving purposes). You do this on a Macintosh by double clicking the Maple 6 § icon inside your Maple folder. On a Windows computer, click Start, Programs, Maple 6 then Maple 6.

Once you start up Maple a new, blank document is displayed, waiting for you to type Maple commands. Try typing in one of the commands above for approximating . Can you approximate it to 1000 significant digits? (Note: Be sure to follow all commands with a semicolon (;). Then type the enter key. Without the semicolon, Maple will interpret what you have typed as an incomplete statement.)

The Next Step: Customizing Maple for Calculus

Go to the Maple section of the Math 3 website http://www.math.dartmouth.edu/~m3f00 and download the folder called "Math 3 Maple files". (It will download as a ".sit" file that will have to be decompressed with Stuffit Expander on Macs or Aladdin Expander on PCs. This might happen automatically depending on how your browser is configured. In any event, you should make sure that the downloaded file has been decompressed before proceeding.) The folder contains a file named MATH3Help.mws, and a folder named "Put Contents in lib Folder". When you have it on your hard disk, open the "Math 3 Maple files" folder. The "MATH3Help.mws" file should be dragged to your Maple folder. The file "math3.m" in the "Put Contents in..." folder (not the whole folder) should be dragged to the lib folder inside the Maple folder. Note for Windows users: On a PC, the "lib" folder should be on the "C" drive in "Program Files: Maple 6" or it can be located with the Find command.

Now, you can throw the "Math 3 Maple files" folder (and the "Put Contents in..." folder) in the trash.

Maple documents are much like a word processor document. They are called Worksheets, because they allow you to type text, include graphics, and issue Maple commands. A well-written Maple worksheet is just like an interactive textbook. Such worksheets are being exchanged today over the World Wide Web, and we will likely see a revolution in publishing over the next decade.

Well, if you have done the things described above you are off and running with Maple. Over the course of the term we will gradually introduce you to Maple techniques that are useful in calculus. It is a huge system that few people learn quickly. Rather, your knowledge of it will grow as you go through courses at Dartmouth over the next years.

The Final Step: Try out your New Software

Open your Maple folder and double click on the appropriate application icon (Maple 6 § in most cases). This starts Maple and displays a new blank worksheet. The Maple prompt > is there with a blinking cursor waiting for you to type Maple commands. Try a few of the following:

2+3;

plot(x^3+3*x-1,x=-3..3);

plot(sin(x),x=-2*Pi..2*Pi);

evalf(Pi,1000);

solve(a*x^2+b*x+c=0,x);

 

Type each of the above commands verbatim (don’t forget the semicolon), and then hit the enter key to execute it. You can save this worksheet by selecting Save As... from the File menu. Or you can print it by selecting Print... from the File menu. Don't worry about not knowing much about Maple. We will learn by doing, as we go along.

Getting Help: Learning Maple Commands On-line

If you want to get help on a topic that you think may exist, type for example

?derivative

and hit the enter key. Maple will tell you if it recognizes what you are asking, and if it does, it will give you a lot of information. So, don't hesitate to explore on your own using the question mark (?) to ask Maple about a topic.

Try this: Experiment with the on-line help (?) by seeing if you can figure out how to get Maple to calculate the derivative of . (Note that in Maple, multiplication is indicated by * and exponentiation by ^. Thus, is written in Maple as , and is written as .) Can you find the answer?

We have also developed two CAS units, CAS #1 on the elementary functions and CAS #2 on the beginning ideas of calculus. The units are useful for learning the Maple tools that apply to calculus, and can be found in the Study Guide section of the website. We will be drawing on material from them in class and assigning homework as appropriate. So, with the on-line help and the CAS units, you should have plenty of support in using Maple. Have fun.





Click here to----> Return to Maple Page