GettingStarted

# GettingStarted - Getting Started with Maple Warren...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Getting Started with Maple Warren Weckesser Note: This handout is actually a "Maple Session"; everything in here was created in Maple. The actual Maple commands that I entered are shown in the lines preceded by the ">"; these lines are immediately followed by the resulting output. Simple calculations: > 2+2; 4 Note the semicolon at the end of the line. Each Maple command must end with a semicolon (or a colon). > (12+3*5)/4; 27 4 Note that Maple does not convert the rational number to its decimal representation. You can find the decimal representation with the "evalf" command. > evalf(27/4); 6.750000000 Maple has many predefined functions. For example, sine and cosine: > sin(1.23); .9424888019 > cos(0); 1 > cos(1); ( ) cos 1 Note that Maple didn't display the numerical value of cos(1). To see the numerical value, use "evalf": > evalf(cos(1)); .5403023059 To take a square root, you can use the "sqrt" function: > sqrt(4); 2 Maple has several predefined constants. The one that we will need most is pi. The Maple name of pi that can be used in an input line is "Pi". Maple is case sensitive , so the P must be a capital letter. In the output, Maple will show the Greek letter. > Pi; > evalf(Pi); 1 3.141592654 > sin(Pi); Another predefined constant that you will see occasionally is "I". In Maple, "I" is the square root of -1 (a complex number). For example: > sqrt(-1); I > sqrt(-16); 4 I > I*I;-1 The function name "exp" is used for the exponential function: > exp(0); 1 > exp(1); e Note that the number "e" is displayed in the output as a boldface e. However, do not use e^x for the exponential function; use exp(x) ....
View Full Document

## This note was uploaded on 02/11/2012 for the course MTH 141, 142, taught by Professor Mcallister during the Spring '08 term at SUNY Empire State.

### Page1 / 8

GettingStarted - Getting Started with Maple Warren...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online