An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel.

Similar documents
Lesson 3: Solving Equations; Floating-point Computation

2.2 Limit of a Function and Limit Laws

C1M0 Introduction to Maple Assignment Format C1M1 C1M1 Midn John Doe Section 1234 Beginning Maple Syntax any

Troubleshooting Maple Worksheets: Common Problems

TI-89 Clinic. Let s first set up our calculators so that we re all working in the same mode.

Section 1: Numerical Calculations

Limits. f(x) and lim. g(x) g(x)

Welcome. Please Sign-In

Maple Quick Start. Introduction. Talking to Maple

Basic stuff -- assignments, arithmetic and functions

Lab 4. Recall, from last lab the commands Table[], ListPlot[], DiscretePlot[], and Limit[]. Go ahead and review them now you'll be using them soon.

For more information, see the Math Notes box in Lesson of the Core Connections, Course 1 text.

1 Introduction to Matlab

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

Preparing for AS Level Further Mathematics

Square Roots: Introduction & Simplification

Section 1.5 Transformation of Functions

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab

MITOCW watch?v=kz7jjltq9r4

APPM 2460 PLOTTING IN MATLAB

Square roots: We say that the square root of 16 is 4. We write this as 16 4.

PreCalculus 300. Algebra 2 Review

Skill 1: Multiplying Polynomials

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

Solving General Linear Equations w/ Excel

Section 6.2 Graphs of the Other Trig Functions

Part 1 Your First Function

2: Functions, Equations, and Graphs

7.3 Simplifying Radical Expressions

Binary, Hexadecimal and Octal number system

Introduction to Engineering gii

These are square roots, cube roots, etc. Intermediate algebra Class notes Radicals and Radical Functions (section 10.1)

Polar Coordinates. 2, π and ( )

MATH STUDENT BOOK. 12th Grade Unit 4

7.8. Approximate Integration

2/22/ Transformations but first 1.3 Recap. Section Objectives: Students will know how to analyze graphs of functions.

Getting Started With Mathematica

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc.

Technology Assignment: Limits at Infinity

In this chapter, we will investigate what have become the standard applications of the integral:

(ii) Use Simpson s rule with two strips to find an approximation to Use your answers to parts (i) and (ii) to show that ln 2.

Grade 8 FSA Mathematics Practice Test Guide

Student Instruction Sheet: Unit 4, Lesson 3. Primary Trigonometric Ratios

Section 1.4 Limits involving infinity

Calculus I (part 1): Limits and Continuity (by Evan Dummit, 2016, v. 2.01)

IB SL REVIEW and PRACTICE

In section 8.1, we began by introducing the sine function using a circle in the coordinate plane:

Week 10. Topic 1 Polynomial Functions

ACT Math test Trigonometry Review

PROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM

Getting to Know Maple

Introduction to Mathcad

MATH STUDENT BOOK. 12th Grade Unit 7

Transformations of Functions. 1. Shifting, reflecting, and stretching graphs Symmetry of functions and equations

c Sa diyya Hendrickson

Trigonometry. 9.1 Radian and Degree Measure

Matlab Introduction. Scalar Variables and Arithmetic Operators

MITOCW ocw f99-lec07_300k

Introduction to Trigonometric Functions. Peggy Adamson and Jackie Nicholas

vi Primer Adapted from:

Graphing Calculator Tutorial

Lesson 11 Skills Maintenance. Activity 1. Model. The addition problem is = 4. The subtraction problem is 5 9 = 4.

The domain of any rational function is all real numbers except the numbers that make the denominator zero or where q ( x)

Proving Trigonometric Identities

MAT 003 Brian Killough s Instructor Notes Saint Leo University

The Justin Guide to Matlab for MATH 241 Part 1.

2.1 Transformers: Shifty y s A Develop Understanding Task

Getting Started With Mathematica

Lab1: Use of Word and Excel

Choose the file menu, and select Open. Input to be typed at the Maple prompt. Output from Maple. An important tip.

MITOCW watch?v=rvrkt-jxvko

Limits and Derivatives (Review of Math 249 or 251)

An Introduction to Using Maple in Math 23

Secondary Math 3- Honors. 7-4 Inverse Trigonometric Functions

Teacher Activity: page 1/9 Mathematical Expressions in Microsoft Word

FSA Algebra 1 EOC Practice Test Guide

In today s video I'm going show you how you can set up your own online business using marketing and affiliate marketing.

Trigonometry and the Unit Circle. Chapter 4

--APOPHYSIS INSTALLATION AND BASIC USE TUTORIAL--

Android Programming Family Fun Day using AppInventor

Calculus III. 1 Getting started - the basics

Check In before class starts:

1.7 Limit of a Function

Excel Basics Fall 2016

Lesson 6: Manipulating Equations

Class #15: Experiment Introduction to Matlab

EGR 111 Plotting Data

FSA Algebra 1 EOC Practice Test Guide

Contents 20. Trigonometric Formulas, Identities, and Equations

Functional Analysis Functions in Review

The Stack, Free Store, and Global Namespace

Proof of Identities TEACHER NOTES MATH NSPIRED. Math Objectives. Vocabulary. About the Lesson. TI-Nspire Navigator System

MITOCW ocw f99-lec12_300k

Chapter 1 Operations With Numbers

IDM 232. Scripting for Interactive Digital Media II. IDM 232: Scripting for IDM II 1

Graphing Trig Functions - Sine & Cosine

Lesson 24: Taylor series

Example 1: Given below is the graph of the quadratic function f. Use the function and its graph to find the following: Outputs

APPM 2460 Matlab Basics

Transcription:

Some quick tips for getting started with Maple: An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. [Even before we start, take note of the distinction between Tet mode and Math Mode. I'm typing a lot of these instructions in tet mode, but unless you're going to be writing papers (or instructive guides to Maple) in Maple, you can stay in Math mode all the time. If you ever try to type an epression or evaluate a function and nothing happens, check to see if you're in Tet mode. You can go back and forth between tet mode and math mode by using CTRL+T and CTRL+M.] ) Entering Epressions To get the epression C7 K4, You can type the '' (of course), then type the ^ symbol above the 6 to put you into the eponent and type a. However, if you then try to just continue typing 7-4, you'll get: C7 K4 which is not what you're looking for. After typing the, hit the right arrow key. This will get you out of the eponent and back onto the main line of the formula. Type in C 7 K4 below. Fractions are also pretty easy with Maple. To get the epression 3 C, you can type ^ 3 [rightarrow] as usual, then hit the / key to indicate that you want a fraction. Then go ahead and type in ^[rightarrow]+, followed by another [rightarrow] to get you out of the fraction altogether. Again, there's a potential for a little difficulty with an epression like: C3 C If you just type + 3 / ^[rightarrow]+[rightarrow] you'll wind up with C 3 C which is a perfectly nice epression, but not what we're looking for. To get the intended epression, you need to use parentheses. Type (+3)/^[rightarrow]+[rightarrow] C3 and you'll get what you're looking for. Type in C below. Now that you know how to enter things like polynomials in Maple, you might be interested to know that Maple is really good at algebra. If I type: C3 K8 $ C C5 (By the way, I got the necessary dot-like multiplication symbol by typing shift-8 to get a *.) I can rightclick on the part in blue and have options like "epand". Try using the epand option. Then right click on the result and use the factor option.

We'll also need to enter things like trigonometric functions, eponential functions, and so forth. Trig functions are pretty easy. You get the sine function by just typing sin() sin Similarly for cos, tan, etc. But beware: Maple is finicky about your always putting in the parentheses. sin doesn't work, nor does sin () with a space between the sin and the (). You get π by typing Pi. (It needs to be capitalized eactly that way. Lowercase gives you the letter, but used as a Greek-letter variable, not the constant that is approimately 3.459.) Try typing sin(pi) and sin(pi). Notice that the answer is different! Another way to get the sine function is to go the menu on the left labeled "Epression". You see trig functions there, as well as eponentials, logs, fractions, roots, some things we haven't talked about but will, and some things that you'd see in Calc II or Calc III. Everything we'll use in this course is either (a) in that menu, (b) can be typed directly pretty easily, or (c) can be accomplished by entering an epression or equation and right-clicking on it. The Epressions menu is great for square roots, fourth roots, etc., although you can always use fractional eponents as well. (Remember that ^(/) is the square root, ^(/4) is the fourth root, etc.) Some things that look easy to type are actually misunderstood if you type them into Maple in the obvious way. Two eamples are e^ and. For the base-e eponential function, you have two options. () You can go to the Epression menu on the left and hit the e a button. You'll have an "a" there that you can replace by or whatever else you want to put in the eponent. () You can type ep which you see Maple interprets as e^. You can even combine functions like: ep sin and Maple is fine with that. However, if you type literally the letter e, the ^ symbol to get yourself into the eponent, and the letter, Maple will interpret that e as a variable you haven't defined yet, not as the constant that is approimately.788. The other odd one is the absolute value. Just as with the eponential function, Maple will be confused if you just type a vertical bar, then an epression, then another vertical bar. It looks like the absolute value function, but Maple won't interpret it that way. You need to use the absoute value button from the Epression menu or you can use the typed-out abs 3 in its place. As you can see, Maple interprets abs(whatever) as the absolute value of whatever. ) Plotting Functions Maple is great at ting functions. Here are a few eamples. Notice a few things. First of all, the word "" is all lowercase, and it needs to be. Secondly, notice the parentheses following the word. They have to come immediately after the word "", and they always have to be there. Any information about what you want ted and how has to come inside

those parentheses. Finally, notice the default - and y-windows. The default -window is -0 to 0; the default y-window is whatever the range is for the function restricted to inputs between -0 and 0. We can change several things about this :, = 0..6, y =K8..8, color = violet, thickness =, caption = "A Purple Curve" It's worth noting two things here. First of all, the way to indicate the interval from 0 to 6 is with two dots between the 0 and the 6: 0..6. Secondly, I'll point out that you aren't allowed to set y-values for the window unless you set -values as well. But if you want to set only -values, that's fine., = 0..6 Finally, it's sort of cool -- and soon will be quite useful to us -- to be able to multiple functions in one window on one set of aes., sin, ep K, =K.., y =K.., color = blue, orange, violet, thickness = Try ting, tan, and K together on the interval K π, π, with y-values in K,. 3) Defining Functions For reasons that will soon become clear (I hope) it's sometimes useful to give a function a definition, rather than just always typing out its full formula. For eample if we wanted to assign the name "f" to the function ep K $Pi we would type the following: The letter f, a colon (:), an equals sign (=), the letter, a dash (-), a greater-than symbol (>) and then the epression could be entered as normal. To repeat, in tet that looks like: f := -> [The epression] But if we do it in Math mode, we get: fd / ep K $Pi Notice how Maple knows that the : and = get combined into that elongated equals sign, and that the - and > get combined into the arrow. The := is our way of telling Maple "Hey, I'm about to define something." When preceded by an "f", we are saying, "Let f be defined to be the following..." The arrow is actually a really good reminder that we're defining a function. What a function does is take -values to output values by some rule. The arrow says "send to...". With the function defined, we can do things like evaluate f(3). f 3 f course, that's not very helpful, but we can right-click on it to get an approimation. Right click on the answer above and use the approimate option to get a 0-digit approimation to f 3. You can also use the evalf command if you prefer typing a command over right-clicking. The main thing defining functions is good for for our purposes, though, is graphing. f, =K3..3, y = 0..0.5, color = blue, thickness = Note that if you try to f, and not f, Maple will give you an error. Since you defined f as a function of, Maple will only recognize it in that contet. 4) Shifting Functions

We will soon cover the topic of the effect that constants can have on a function. You should already be somewhat familiar with the topic, but the net few eamples should be a good warm-up. Recall that functions can be translated, stretched, and compressed. In each of the following eamples, the original function is blue, and the shifted one is orange. f, f C, =K3..3, y = 0..0.5, color = blue, orange, thickness = How does the graph of f C compare to the graph of f? f, f K, =K3..3, y = 0..0.5, color = blue, orange, thickness = How does the graph of f K compare to the graph of f? f, f C0., =K3..3, y = 0..0.5, color = blue, orange, thickness = How does the graph of f C0. compare to the graph of f? f, f, =K3..3, y = 0..0.5, color = blue, orange, thickness = How does the graph of f compare to the graph of f? f, f, =K3..3, y = 0..0.5, color = blue, orange, thickness = How does the graph of f compare to the graph of f? f, $ f, =K3..3, y = 0..0.5, color = blue, orange, thickness = How does the graph of $ f compare to the graph of f? f, f, =K3..3, y = 0..0.5, color = blue, orange, thickness = How does the graph of f compare to the graph of f?

5) Further Eercises. Get Maple to give you the cosine of 3 4 digits.. Input the following epression: π, both as an eact answer and as an approimation with 0 C K3 K3 C 3. Try ting sin from equals 0 to 00. Why do we get such a 'bad' graph?. Then get Maple to simplify it for you. Change the domain until you get a better graph. At what point does the graph seem to get out of hand? 4. What happens if you type v = followed by vc? What happens if you type vd followed by vc? Can you eplain the difference in the result? 5. Find log base 5 of 0 as a decimal approimation with 5 digits. Find the natural log of 0 as a decimal approimation with 5 digits. 5. It's a good idea to familiarize yourself with Maple's ecellent help menu. Start by typing help() in the command prompt below. This will take you to a page with a description of the command and all of its options as well as a variety of eamples. The best way to use the help menu is often to parues the eamples and then modify them for your needs. Copy and paste one eample that you find to be fun into this page and eecute it. Might I suggest checking out the 3d command for eceptionally cool s?