MST30040 Differential Equations via Computer Algebra Fall 2010 Worksheet 1

Size: px
Start display at page:

Download "MST30040 Differential Equations via Computer Algebra Fall 2010 Worksheet 1"

Transcription

1 MST3000 Differential Equations via Computer Algebra Fall 2010 Worksheet 1 1 Some elementary calculations To use Maple for calculating or problem solving, the basic method is conversational. You type a command at the prompt (>) (followed by a semi-colon in older versions of Maple), press the enter or return key and Maple gives the output immediately below ! (sqrt(2) + 1) If any of the numbers in the input is a floating-point number (i.e. has a decimal point), then the output will usually be a floating-point approximation Compare the two following calculations In the first, Maple recognizes an integer and calculates using exact integer arithmetic. In the second, Maple views 31.0 as a floating-point number and therefore gives the result as a floating point approximation. The evalf function can be used to convert an exact number into a decimal floating point approximation. evalf ( ) 62 sin ( π ) 11 evalf ( sin ( π )) The accuracy in this floating-point number is 10 digits (depending on the particular release of Maple being used). This is the default accuracy in Maple 6 and later releases. The result can be obtained to any desired accuracy (within reason) by adding a second argument to evalf specifiying the number of digits required. 1

2 evalf ( sin ( ) ) π, 50 The default accuracy of the current version of Maple can be determined by typing Digits after the prompt: Digits Alternatively, the default accuracy can be changed as follows: Digits := 30 evalf ( sin ( )) π Digits 2 Assigning names to Maple objects The most recent output of a Maple computation can be referred to by a %. The second most recent output can be referred to by a %% % % 7 %% However, this device is not very useful if we want to refer to the same output in several subsequent computations or if we want to refer back to an output obtained much eariier in the Maple session. It is often convenient and generally a good idea to assign a name to the output of a computation or to any expression which may be used during a computation. You assign a name to an expression or output by using a := symbol; i.e. the syntax used is name:=expression. bob := 5 8 We now have a Maple object (in this case, an integer) called bob which can be manipulated at will. For instance, if we want to cube this number: bob 3 The name assigned to a Maple object can be any string of alphanumeric characters and underscores, subject to the condition that the first character is a letter. For example, answer, function3, a, bb 2, Bertie Ahern are valid names, while 3rd answer, 5a, Bush, x&y are not. However, certain names cannot be used for assignment since they have a predefined meaning in Maple. For example, the names Pi, set, Digits, I are reserved in Maple (the last is the symbol for the square root of -1). Compare the assignment operator := with the equal sign = : joe := x joe tom = x

3 tom The expression tom = x is an equation. eqn := tom = x eqn solve (eqn, x) solve (eqn, tom) 3 Functions and Expressions restart When working with Maple, or any computer algebra system, it is important to be aware of the type of object you are working with. For example, you should distingusih between exact numbers and floating point approximations. Another important distinction is between expressions and functions. An expression is just a meaningless combination of symbols, usually a mixture of algebraic operations and alphanumeric characters. The following are expressions: 5 x + 3 tom + joe 50 tom + 27 b 8 y 5 x + 7 y 3 = 2 + b The last expression is an equation, since it has an equal sign. The solve command usually accepts an equation as its input: solve ( 5 x + 7 y 3 = 2 + b, x ) A function is not an expression, it is an operation, algorithm or programme which accepts an input or inputs and returns an output. To define a function in Maple, the command format is input -> corresponding output (the input can be any symbol or expression). In order to work with a function we need to assign a name to it (unless it has already been assigned a name by Maple). For example, the cubing function: cube := a a 3 cube (10) cube (tom) cube (x) Observe carefully that applying the function cube to the expression x outputs the expression xˆ3. In this way we can convert a function into an expression. This process can be reversed using the unapply command: expr := x 2 3

4 expr (5) square := unapply (expr, x) square (5) square (x) Differentiation and Integration restart There are two differentiation operations in Maple, diff and D. The command diff is used to differentiate an expression with respect to a variable occurring in the expression and it outputs an expression. joe := x + 3 b 2 diff (joe, x) diff (joe, b) Second and higher derivatives of an expression can be obtained as follows: diff (joe, x, x) diff (joe, b, b) diff (joe, x, x, x) diff (joe, x$3) The differentiation operator, D, takes as its input a function (not an expression), and outputs a function: D ( x x 2) Or, better still, we can name the function once and for all, and then refer to it afterwards by name: tom := x x 2 D (tom) Note that tom is a function, not an expression; the same is true of its derivative. We may want to give a name to the derivative of tom : lisa := D (tom) Explain the following: diff (tom, x) Recall that tom(x) is now an expression involving x and thus can be differentiated using the diff command. The output will again be an expression involving x (and not a function). diff (tom(x), x) Most of the standard mathematical functions are built into Maple with reserved names: sin, cos, tan, sinh, exp, ln, log[10], sqrt, arcsin etc. Note that sin is a function, but sin(x) is the value of sin at the input x. sin ( ) π 2

5 log 10 (100) exp(1) D (sin) D (sinh) recip := D (ln) recip (5) Explain the outputs in the following: D (sin(x)) diff (sin, x) diff (sin(x), x) Explain the two following outputs. diff (sinx, x) diff (sin x, x) monster := sin ( tan ( log ( 1 + x 3 + sqrt(1 + x) ))) diff (monster, x) To find the third derivative of monster by hand would be a very formidable task, as the following Maple calculation shows: thirdderiv := diff (monster, x$3) Suppose now that we want to take this last output and evaluate it at 1.87, say. It helps that we have assigned a name - thirdderiv - to the output. However, the command thirdderiv(1.87) gets us nowhere: thirdderiv (1.87) This is because thirdderiv is an algebraic expression and not a function. Now let s make a function out of thirdderiv : harry := unapply (thirdderiv, x) We now have a function, which can be evaluated at 1.87: harry (1.87) Maple can handle partial derivatives of all order: bob := x 3 sin ( x y ) + sqrt ( x 3 + y 8) diff (bob, x) diff (bob, y) diff (bob, x, y) diff (bob, y, y) Maple can perform both definite and indefinite integration. Let us find the area under the curve y=sin(x) from x=0 to x=1: area := int(sin(x), x = 0..1) Maple tries to give an exact output if it can. It has done this here, but the result may not be what we want. We can use evalf to get a floating point approximation: 5

6 evalf (area) An alternative would have been to express (at least one of) the limits of integration as floating point numbers: int(sin(x), x = ) As we have seen, Maple can perform indefinite integration. It outputs one (usually the simplest) antiderivative of the given expression. The others, of course, are obtained by adding a constant: integ := int(x 7 sin ( x 2), x) gensol := integ + C diff (gensol, x) Sometimes Maple will simply output the original indefinite integral if it can find no simpler form for the antiderivative: int1 := int(sqrt(log(x)), x) diff (int1, x) Observe that Maple knows the Fundamental Theorem of Calculus: areafunction := t int(sqrt(log(x)), x = 1..t) diff (areafunction(t), t) Alternatively: D (areafunction) 5 The plot command restart The main command for graphing a function or list of functions of a single variable is plot. Compare the following: plot (sin) plot ([sin, cos]) plot (sin(x),x = 2..2) plot (sin(x),x = 0..10, y = 0..1) plot ([sin(3 x),cos ( x),sin(3 x) + cos ( x)], x = 0..5) Of course, we are free to the name the input variable as we choose: plot (sin(var),var = 3..3) The help page for any command can be accessed by typing?commandname after the prompt. Try the command?plot. 6

Getting to Know Maple

Getting to Know Maple Maple Worksheets for rdinary Differential Equations Complimentary software to accompany the textbook: Differential Equations: Concepts, Methods, and Models (00-00 Edition) Leigh C. Becker Department of

More information

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

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 1 INTRODUCING SOME MATHEMATICS SOFTWARE (Matlab, Maple and Mathematica) This topic provides

More information

1 Maple Introduction. 1.1 Getting Started. 1.2 Maple Commands

1 Maple Introduction. 1.1 Getting Started. 1.2 Maple Commands 1 Maple Introduction 1.1 Getting Started The software package Maple is an example of a Computer Algebra System (CAS for short), meaning that it is capable of dealing with problems in symbolic form. This

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Kristian Sandberg Department of Applied Mathematics University of Colorado Goal The goal with this worksheet is to give a brief introduction to the mathematical software Matlab.

More information

Arithmetic expressions can be typed into Maple using the regular operators:

Arithmetic expressions can be typed into Maple using the regular operators: Basic arithmetic Arithmetic expressions can be typed into Maple using the regular operators: (type "3 + 4" and then press "[Enter]" to start the evaluation of the expression) 7 (1.1) 5 (1.2) 21 (1.3) (type

More information

Section 1: Numerical Calculations

Section 1: Numerical Calculations Section 1: Numerical Calculations In this section you will use Maple to do some standard numerical calculations. Maple's ability to produce exact answers in addition to numerical approximations gives you

More information

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

Choose the file menu, and select Open. Input to be typed at the Maple prompt. Output from Maple. An important tip. MAPLE Maple is a powerful and widely used mathematical software system designed by the Computer Science Department of the University of Waterloo. It can be used for a variety of tasks, such as solving

More information

Basic stuff -- assignments, arithmetic and functions

Basic stuff -- assignments, arithmetic and functions Basic stuff -- assignments, arithmetic and functions Most of the time, you will be using Maple as a kind of super-calculator. It is possible to write programs in Maple -- we will do this very occasionally,

More information

Introduction to Classic Maple by David Maslanka

Introduction to Classic Maple by David Maslanka Introduction to Classic Maple by David Maslanka Maple is a computer algebra system designed to do mathematics. Symbolic, numerical and graphical computations can all be done with Maple. Maple's treatment

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how

More information

Appendix H: Introduction to Maple

Appendix H: Introduction to Maple Appendix H: Introduction to Maple Maple is an application that can be used to analytically solve algebraic and differential equations. The capability to differentiate, integrate and algebraically manipulate

More information

INTRODUCTION TO DERIVE - by M. Yahdi

INTRODUCTION TO DERIVE - by M. Yahdi Math 111/112-Calculus I & II- Ursinus College INTRODUCTION TO DERIVE - by M. Yahdi This is a tutorial to introduce main commands of the Computer Algebra System DERIVE. You should do (outside of class)

More information

Starting MATLAB To logon onto a Temple workstation at the Tech Center, follow the directions below.

Starting MATLAB To logon onto a Temple workstation at the Tech Center, follow the directions below. What is MATLAB? MATLAB (short for MATrix LABoratory) is a language for technical computing, developed by The Mathworks, Inc. (A matrix is a rectangular array or table of usually numerical values.) MATLAB

More information

An Introduction to Maple and Maplets for Calculus

An Introduction to Maple and Maplets for Calculus An Introduction to Maple and Maplets for Calculus Douglas B. Meade Department of Mathematics University of South Carolina Columbia, SC 29208 USA URL: www.math.sc.edu/~meade e-mail: meade@math.sc.edu Philip

More information

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

C1M0 Introduction to Maple Assignment Format C1M1 C1M1 Midn John Doe Section 1234 Beginning Maple Syntax any CM0 Introduction to Maple Our discussion will focus on Maple 6, which was developed by Waterloo Maple Inc. in Waterloo, Ontario, Canada. Quoting from the Maple 6 Learning Guide, Maple is a Symbolic Computation

More information

Lesson 4: Numerical Computations; Newton's method

Lesson 4: Numerical Computations; Newton's method Lesson 4: Numerical Computations; Newton's method restart; Catastrophic cancellation in the quadratic formula One case where roundoff error can be severe is if you subtract two numbers that are very close

More information

Introduction to Matlab. By: Dr. Maher O. EL-Ghossain

Introduction to Matlab. By: Dr. Maher O. EL-Ghossain Introduction to Matlab By: Dr. Maher O. EL-Ghossain Outline: q What is Matlab? Matlab Screen Variables, array, matrix, indexing Operators (Arithmetic, relational, logical ) Display Facilities Flow Control

More information

1 A Section A BRIEF TOUR. 1.1 Subsection Subsection 2

1 A Section A BRIEF TOUR. 1.1 Subsection Subsection 2 A BRIEF TOUR Maple V is a complete mathematical problem-solving environment that supports a wide variety of mathematical operations such as numerical analysis, symbolic algebra, and graphics. This worksheet

More information

Lab#1: INTRODUCTION TO DERIVE

Lab#1: INTRODUCTION TO DERIVE Math 111-Calculus I- Fall 2004 - Dr. Yahdi Lab#1: INTRODUCTION TO DERIVE This is a tutorial to learn some commands of the Computer Algebra System DERIVE. Chapter 1 of the Online Calclab-book (see my webpage)

More information

Introduction to Engineering gii

Introduction to Engineering gii 25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.

More information

Lesson 16: Integration

Lesson 16: Integration Lesson 16: Integration Definite integrals When Maple can find an antiderivative of a function, it should have no trouble with definite integrals of that function, using the Fundamental Theorem of Calculus.

More information

ELEMENTARY MATLAB PROGRAMMING

ELEMENTARY MATLAB PROGRAMMING 1 ELEMENTARY MATLAB PROGRAMMING (Version R2013a used here so some differences may be encountered) COPYRIGHT Irving K. Robbins 1992, 1998, 2014, 2015 All rights reserved INTRODUCTION % It is assumed the

More information

LECTURE 0: Introduction and Background

LECTURE 0: Introduction and Background 1 LECTURE 0: Introduction and Background September 10, 2012 1 Computational science The role of computational science has become increasingly significant during the last few decades. It has become the

More information

LAB 1 General MATLAB Information 1

LAB 1 General MATLAB Information 1 LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by

More information

General Information. There are certain MATLAB features you should be aware of before you begin working with MATLAB.

General Information. There are certain MATLAB features you should be aware of before you begin working with MATLAB. Introduction to MATLAB 1 General Information Once you initiate the MATLAB software, you will see the MATLAB logo appear and then the MATLAB prompt >>. The prompt >> indicates that MATLAB is awaiting a

More information

MATLAB QUICK START TUTORIAL

MATLAB QUICK START TUTORIAL MATLAB QUICK START TUTORIAL This tutorial is a brief introduction to MATLAB which is considered one of the most powerful languages of technical computing. In the following sections, the basic knowledge

More information

AMS 27L LAB #1 Winter 2009

AMS 27L LAB #1 Winter 2009 AMS 27L LAB #1 Winter 2009 Introduction to MATLAB Objectives: 1. To introduce the use of the MATLAB software package 2. To learn elementary mathematics in MATLAB Getting Started: Log onto your machine

More information

2 Maple for APPL. 2.1 Numerical Computations

2 Maple for APPL. 2.1 Numerical Computations 2 Maple for APPL Maple is a computer algebra system and programming language that can be used for numerical computations, solving equations, manipulating symbolic expressions, plotting, and programming,

More information

Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017

Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017 Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017 Appendix A Glossary of Matlab Commands Mathematical Operations + Addition. Type help plus

More information

Introduction to Programming

Introduction to Programming Introduction to Programming Department of Computer Science and Information Systems Tingting Han (afternoon), Steve Maybank (evening) tingting@dcs.bbk.ac.uk sjmaybank@dcs.bbk.ac.uk Autumn 2017 Week 4: More

More information

Multiple Angle and Product-to-Sum Formulas. Multiple-Angle Formulas. Double-Angle Formulas. sin 2u 2 sin u cos u. 2 tan u 1 tan 2 u. tan 2u.

Multiple Angle and Product-to-Sum Formulas. Multiple-Angle Formulas. Double-Angle Formulas. sin 2u 2 sin u cos u. 2 tan u 1 tan 2 u. tan 2u. 3330_0505.qxd 1/5/05 9:06 AM Page 407 Section 5.5 Multiple-Angle and Product-to-Sum Formulas 407 5.5 Multiple Angle and Product-to-Sum Formulas What you should learn Use multiple-angle formulas to rewrite

More information

Iteration. The final line is simply ending the do word in the first line. You can put as many lines as you like in between the do and the end do

Iteration. The final line is simply ending the do word in the first line. You can put as many lines as you like in between the do and the end do Intruction Iteration Iteration: the for loop Computers are superb at repeating a set of instructions over and over again - very quickly and with complete reliability. Here is a short maple program ce that

More information

ü 1.1 Getting Started

ü 1.1 Getting Started Chapter 1 Introduction Welcome to Mathematica! This tutorial manual is intended as a supplement to Rogawski's Calculus textbook and aimed at students looking to quickly learn Mathematica through examples.

More information

VARIABLES Storing numbers:

VARIABLES Storing numbers: VARIABLES Storing numbers: You may create and use variables in Matlab to store data. There are a few rules on naming variables though: (1) Variables must begin with a letter and can be followed with any

More information

Introduction. What is Maple? How to use this tutorial. Where can I find Maple?

Introduction. What is Maple? How to use this tutorial. Where can I find Maple? Introduction What is Maple? Maple is a computer program for people doing mathematics. Using Maple to do your calculations should make the work more interesting, allow you to focus more on the concepts,

More information

POLYMATH POLYMATH. for IBM and Compatible Personal Computers. for IBM and Compatible Personal Computers

POLYMATH POLYMATH. for IBM and Compatible Personal Computers. for IBM and Compatible Personal Computers POLYMATH VERSION 4.1 Provides System Printing from Windows 3.X, 95, 98 and NT USER-FRIENDLY NUMERICAL ANALYSIS PROGRAMS - SIMULTANEOUS DIFFERENTIAL EQUATIONS - SIMULTANEOUS ALGEBRAIC EQUATIONS - SIMULTANEOUS

More information

Applied Calculus. Lab 1: An Introduction to R

Applied Calculus. Lab 1: An Introduction to R 1 Math 131/135/194, Fall 2004 Applied Calculus Profs. Kaplan & Flath Macalester College Lab 1: An Introduction to R Goal of this lab To begin to see how to use R. What is R? R is a computer package for

More information

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

A Brief Introduction to Mathematica

A Brief Introduction to Mathematica A Brief Introduction to Mathematica Objectives: (1) To learn to use Mathematica as a calculator. (2) To learn to write expressions in Mathematica, and to evaluate them at given point. (3) To learn to plot

More information

4 Visualization and. Approximation

4 Visualization and. Approximation 4 Visualization and Approximation b A slope field for the differential equation y tan(x + y) tan(x) tan(y). It is not always possible to write down an explicit formula for the solution to a differential

More information

Troubleshooting Maple Worksheets: Common Problems

Troubleshooting Maple Worksheets: Common Problems Troubleshooting Maple Worksheets: Common Problems So you've seen plenty of worksheets that work just fine, but that doesn't always help you much when your worksheet isn't doing what you want it to. This

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A B C D E F G Basic calculations Basic functions Secondary function and alpha keys Memory Lists Statistical graphs Working with functions 10 GRAPHICS CALCULATOR

More information

MA 113 Calculus I Fall 2015 Exam 2 Tuesday, 20 October Multiple Choice Answers. Question

MA 113 Calculus I Fall 2015 Exam 2 Tuesday, 20 October Multiple Choice Answers. Question MA 113 Calculus I Fall 2015 Exam 2 Tuesday, 20 October 2015 Name: Section: Last digits of student ID #: This exam has ten multiple choice questions (five points each) and five free response questions (ten

More information

CGF Lecture 2 Numbers

CGF Lecture 2 Numbers CGF Lecture 2 Numbers Numbers A number is an abstract entity used originally to describe quantity. i.e. 80 Students etc The most familiar numbers are the natural numbers {0, 1, 2,...} or {1, 2, 3,...},

More information

CHAPTER 3: CORE PROGRAMMING ELEMENTS

CHAPTER 3: CORE PROGRAMMING ELEMENTS Variables CHAPTER 3: CORE PROGRAMMING ELEMENTS Introduction to Computer Science Using Ruby A variable is a single datum or an accumulation of data attached to a name The datum is (or data are) stored in

More information

LESSON 5 FUNDAMENTAL DATA TYPES. char short int long unsigned char unsigned short unsigned unsigned long

LESSON 5 FUNDAMENTAL DATA TYPES. char short int long unsigned char unsigned short unsigned unsigned long LESSON 5 ARITHMETIC DATA PROCESSING The arithmetic data types are the fundamental data types of the C language. They are called "arithmetic" because operations such as addition and multiplication can be

More information

1. Let be a point on the terminal side of θ. Find the 6 trig functions of θ. (Answers need not be rationalized). b. P 1,3. ( ) c. P 10, 6.

1. Let be a point on the terminal side of θ. Find the 6 trig functions of θ. (Answers need not be rationalized). b. P 1,3. ( ) c. P 10, 6. Q. Right Angle Trigonometry Trigonometry is an integral part of AP calculus. Students must know the basic trig function definitions in terms of opposite, adjacent and hypotenuse as well as the definitions

More information

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

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. 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

More information

Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before.

Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy

More information

MAPLE CARD. All commands and constants must be typed in the case (UPPER or lower) that is indicated. Syntax Rules

MAPLE CARD. All commands and constants must be typed in the case (UPPER or lower) that is indicated. Syntax Rules MAPLE CARD All commands and constants must be typed in the case (UPPER or lower) that is indicated Syntax Rules ; a semicolon or a colon and a RETURN must follow every command. % refers to previous display.

More information

Calculus III. 1 Getting started - the basics

Calculus III. 1 Getting started - the basics Calculus III Spring 2011 Introduction to Maple The purpose of this document is to help you become familiar with some of the tools the Maple software package offers for visualizing curves and surfaces in

More information

Math 2250 MATLAB TUTORIAL Fall 2005

Math 2250 MATLAB TUTORIAL Fall 2005 Math 2250 MATLAB TUTORIAL Fall 2005 Math Computer Lab The Mathematics Computer Lab is located in the T. Benny Rushing Mathematics Center (located underneath the plaza connecting JWB and LCB) room 155C.

More information

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

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc. Maple Quick Start Maplesoft, a division of Waterloo Maple Inc. This tutorial is designed to help you become familiar with the Maple environment and teach you the few fundamental concepts and tools you

More information

2 Second Derivatives. As we have seen, a function f (x, y) of two variables has four different partial derivatives: f xx. f yx. f x y.

2 Second Derivatives. As we have seen, a function f (x, y) of two variables has four different partial derivatives: f xx. f yx. f x y. 2 Second Derivatives As we have seen, a function f (x, y) of two variables has four different partial derivatives: (x, y), (x, y), f yx (x, y), (x, y) It is convenient to gather all four of these into

More information

Maxima CAS presentation Chelton Evans

Maxima CAS presentation Chelton Evans Maxima CAS presentation 2015-12-01 Chelton Evans Abstract Maxima is a popular copyleft CAS (Computer Algebra System) which can be used for both symbolic and numerical calculation. Chelton Evans will present

More information

Computer Programming in MATLAB

Computer Programming in MATLAB Computer Programming in MATLAB Prof. Dr. İrfan KAYMAZ Atatürk University Engineering Faculty Department of Mechanical Engineering What is a computer??? Computer is a device that computes, especially a

More information

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT PROGRAMMING WITH MATLAB DR. AHMET AKBULUT OVERVIEW WEEK 1 What is MATLAB? A powerful software tool: Scientific and engineering computations Signal processing Data analysis and visualization Physical system

More information

Matlab Introduction. Scalar Variables and Arithmetic Operators

Matlab Introduction. Scalar Variables and Arithmetic Operators Matlab Introduction Matlab is both a powerful computational environment and a programming language that easily handles matrix and complex arithmetic. It is a large software package that has many advanced

More information

Calculus WIZ and The Mathematical Explorer advanced use

Calculus WIZ and The Mathematical Explorer advanced use Calculus WIZ and The Mathematical Explorer advanced use Numerical and symbolical capabilities Both Calculus WIZ and The Mathematical Explorer support many symbolic and numeric capabilities of its parent

More information

Calculus II (Math 122) Final Exam, 11 December 2013

Calculus II (Math 122) Final Exam, 11 December 2013 Name ID number Sections B Calculus II (Math 122) Final Exam, 11 December 2013 This is a closed book exam. Notes and calculators are not allowed. A table of trigonometric identities is attached. To receive

More information

0.1 Numerical Integration Rules Using Maple

0.1 Numerical Integration Rules Using Maple > restart; Numerical Integration Note: While reading this worksheet make sure that you re-execute each command by placing the cursor on the command line and pressing Enter. You should do this with every

More information

MEI GeoGebra Tasks for A2 Core

MEI GeoGebra Tasks for A2 Core Task 1: Functions The Modulus Function 1. Plot the graph of y = x : use y = x or y = abs(x) 2. Plot the graph of y = ax+b : use y = ax + b or y = abs(ax+b) If prompted click Create Sliders. What combination

More information

Numerical methods in physics

Numerical methods in physics Numerical methods in physics Marc Wagner Goethe-Universität Frankfurt am Main summer semester 2018 Version: April 9, 2018 1 Contents 1 Introduction 3 2 Representation of numbers in computers, roundoff

More information

Ph3 Mathematica Homework: Week 1

Ph3 Mathematica Homework: Week 1 Ph3 Mathematica Homework: Week 1 Eric D. Black California Institute of Technology v1.1 1 Obtaining, installing, and starting Mathematica Exercise 1: If you don t already have Mathematica, download it and

More information

Pre Calculus Worksheet: Fundamental Identities Day 1

Pre Calculus Worksheet: Fundamental Identities Day 1 Pre Calculus Worksheet: Fundamental Identities Day 1 Use the indicated strategy from your notes to simplify each expression. Each section may use the indicated strategy AND those strategies before. Strategy

More information

CSE/Math 485 Matlab Tutorial and Demo

CSE/Math 485 Matlab Tutorial and Demo CSE/Math 485 Matlab Tutorial and Demo Some Tutorial Information on MATLAB Matrices are the main data element. They can be introduced in the following four ways. 1. As an explicit list of elements. 2. Generated

More information

Python Programming: An Introduction to Computer Science

Python Programming: An Introduction to Computer Science Python Programming: An Introduction to Computer Science Chapter 3 Computing with Numbers Python Programming, 3/e 1 Objectives n To understand the concept of data types. n To be familiar with the basic

More information

Mathematical Experiments with Mathematica

Mathematical Experiments with Mathematica Mathematical Experiments with Mathematica Instructor: Valentina Kiritchenko Classes: F 12:00-1:20 pm E-mail : vkiritchenko@yahoo.ca, vkiritch@hse.ru Office hours : Th 5:00-6:20 pm, F 3:30-5:00 pm 1. Syllabus

More information

Maple for Math Majors. 12. Data Structures in Maple

Maple for Math Majors. 12. Data Structures in Maple Maple for Math Majors Roger Kraft Department of Mathematics, Computer Science, and Statistics Purdue University Calumet roger@calumet.purdue.edu 12.1. Introduction 12. Data Structures in Maple We have

More information

The Bisection Method versus Newton s Method in Maple (Classic Version for Windows)

The Bisection Method versus Newton s Method in Maple (Classic Version for Windows) The Bisection Method versus (Classic Version for Windows) Author: Barbara Forrest Contact: baforres@uwaterloo.ca Copyrighted/NOT FOR RESALE version 1.1 Contents 1 Objectives for this Lab i 2 Approximate

More information

Maple Quick Start. Introduction. Talking to Maple

Maple Quick Start. Introduction. Talking to Maple Maple Quick Start Maplesoft, a division of Waterloo Maple Inc. 2008. All rights reserved. This product and content is protected by copyright. You may not copy, modify, transmit or reproduce this content

More information

ENCM 339 Fall 2017 Lecture Section 01 Lab 9 for the Week of November 20

ENCM 339 Fall 2017 Lecture Section 01 Lab 9 for the Week of November 20 page 1 of 9 ENCM 339 Fall 2017 Lecture Section 01 Lab 9 for the Week of November 20 Steve Norman Department of Electrical & Computer Engineering University of Calgary November 2017 Lab instructions and

More information

General MATLAB Information 1

General MATLAB Information 1 Introduction to MATLAB General MATLAB Information 1 Once you initiate the MATLAB software, you will see the MATLAB logo appear and then the MATLAB prompt >>. The prompt >> indicates that MATLAB is awaiting

More information

Maple to Accompany Differential Equations. Douglas Hundley Department of Mathematics and Statistics Whitman College

Maple to Accompany Differential Equations. Douglas Hundley Department of Mathematics and Statistics Whitman College Maple to Accompany Differential Equations Douglas Hundley Department of Mathematics and Statistics Whitman College August 27, 2018 2 Contents 1 Getting Started 5 1.1 Getting Started.......................................

More information

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

MATH 104 Sample problems for first exam - Fall MATH 104 First Midterm Exam - Fall (d) 256 3

MATH 104 Sample problems for first exam - Fall MATH 104 First Midterm Exam - Fall (d) 256 3 MATH 14 Sample problems for first exam - Fall 1 MATH 14 First Midterm Exam - Fall 1. Find the area between the graphs of y = 9 x and y = x + 1. (a) 4 (b) (c) (d) 5 (e) 4 (f) 81. A solid has as its base

More information

What is MATLAB and howtostart it up?

What is MATLAB and howtostart it up? MAT rix LABoratory What is MATLAB and howtostart it up? Object-oriented high-level interactive software package for scientific and engineering numerical computations Enables easy manipulation of matrix

More information

CSE/Math 456 and CSE/Math 550 Matlab Tutorial and Demo

CSE/Math 456 and CSE/Math 550 Matlab Tutorial and Demo CSE/Math 456 and CSE/Math 550 Matlab Tutorial and Demo MATLAB is very powerful and varied software package for scientific computing. It is based upon matrices and m files. It is invoked by typing % matlab

More information

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano MATLAB Lesson I Chiara Lelli Politecnico di Milano October 2, 2012 MATLAB MATLAB (MATrix LABoratory) is an interactive software system for: scientific computing statistical analysis vector and matrix computations

More information

Object Oriented Programming Using C++ Mathematics & Computing IET, Katunayake

Object Oriented Programming Using C++ Mathematics & Computing IET, Katunayake Assigning Values // Example 2.3(Mathematical operations in C++) float a; cout > a; cout

More information

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

More information

A Mathematica Tutorial

A Mathematica Tutorial A Mathematica Tutorial -3-8 This is a brief introduction to Mathematica, the symbolic mathematics program. This tutorial is generic, in the sense that you can use it no matter what kind of computer you

More information

10 Using the PCFL Editor In this chapter

10 Using the PCFL Editor In this chapter 10 Using the PCFL Editor In this chapter Introduction to the PCFL editor 260 Editing PCFL registers 261 Customizing the PCFL configuration file 272 ProWORX NxT User s Guide Introduction to the PCFL editor

More information

SECTION 1. INTRODUCTION...

SECTION 1. INTRODUCTION... 1 Maple 11 Tutorial SECTION 1. INTRODUCTION... 2 ABOUT THE DOCUMENT... 2 MAPLE INTRODUCTION... 2 ACCESS TO MAPLE... 2 GETTING STARTED... 3 THE MAPLE WINDOW... 4 THE HELP WINDOW... 5 BASIC CONVENTIONS IN

More information

Introduction to Computer Programming in Python Dr. William C. Bulko. Data Types

Introduction to Computer Programming in Python Dr. William C. Bulko. Data Types Introduction to Computer Programming in Python Dr William C Bulko Data Types 2017 What is a data type? A data type is the kind of value represented by a constant or stored by a variable So far, you have

More information

INDEX INTRODUCTION...1

INDEX INTRODUCTION...1 Welcome to Maple Maple is a comprehensive computer system for advanced mathematics. It includes facilities for interactive algebra, pre-calculus, calculus, discrete mathematics, graphics, numerical computation

More information

Lecture 7 Symbolic Computations

Lecture 7 Symbolic Computations Lecture 7 Symbolic Computations The focus of this course is on numerical computations, i.e. calculations, usually approximations, with floating point numbers. However, Matlab can also do symbolic computations,

More information

Variables are used to store data (numbers, letters, etc) in MATLAB. There are a few rules that must be followed when creating variables in MATLAB:

Variables are used to store data (numbers, letters, etc) in MATLAB. There are a few rules that must be followed when creating variables in MATLAB: Contents VARIABLES... 1 Storing Numerical Data... 2 Limits on Numerical Data... 6 Storing Character Strings... 8 Logical Variables... 9 MATLAB S BUILT-IN VARIABLES AND FUNCTIONS... 9 GETTING HELP IN MATLAB...

More information

1.1 Numbers system :-

1.1 Numbers system :- 1.1 Numbers system :- 1.3.1 Decimal System (0-9) :- Decimal system is a way of writing numbers. Any number, from huge quantities to tiny fractions, can be written in the decimal system using only the ten

More information

Introduction to Sequences in Maple (Classic Version for Windows)

Introduction to Sequences in Maple (Classic Version for Windows) Introduction to Sequences in Maple (Classic Version for Windows) Author: Barbara Forrest Contact: baforres@uwaterloo.ca Copyrighted/NOT FOR RESALE version 1.1 Contents 1 Objectives for this Lab ii 2 Helpful

More information

Functional Programming Languages (FPL)

Functional Programming Languages (FPL) Functional Programming Languages (FPL) 1. Definitions... 2 2. Applications... 2 3. Examples... 3 4. FPL Characteristics:... 3 5. Lambda calculus (LC)... 4 6. Functions in FPLs... 7 7. Modern functional

More information

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures Introduction to Octave/Matlab Deployment of Telecommunication Infrastructures 1 What is Octave? Software for numerical computations and graphics Particularly designed for matrix computations Solving equations,

More information

Graphing Calculator Tutorial

Graphing Calculator Tutorial Graphing Calculator Tutorial This tutorial is designed as an interactive activity. The best way to learn the calculator functions will be to work the examples on your own calculator as you read the tutorial.

More information

Section 5: Functions: Defining, Evaluating and Graphing

Section 5: Functions: Defining, Evaluating and Graphing Section 5: Functions: Defining, Evaluating and Graphing In this section you will learn how to define a function f (x ) in Maple. The remainder of the section covers evaluating functions, solving equations

More information

Ph3 Mathematica Homework: Week 6

Ph3 Mathematica Homework: Week 6 Ph3 Mathematica Homework: Week 6 Eric D. Black California Institute of Technology v1.1 Now that we ve covered techniques specific to data analysis, we will branch out into some more general topics. This

More information

A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING TABLE OF CONTENTS

A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING TABLE OF CONTENTS A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING MARC THOMAS AND CHRISTOPHER PASCUA TABLE OF CONTENTS 1. Language Usage and Matlab Interface 1 2. Matlab Global Syntax and Semantic

More information

Math 382: Scientific Computing 1. Intro to Maple

Math 382: Scientific Computing 1. Intro to Maple Math 382: Scientific Computing 1 Intro to Maple Preliminaries Start Maple from the Start button -> Programs -> Math -> Maple 11.0 -> Maple 11. Go to the Tools menu and select Options. A dialog window will

More information

Maple Tutorial to accompany Partial Differential Equations: Analytical and Numerical Methods, 2nd edition by Mark S. Gockenbach (SIAM, 2010)

Maple Tutorial to accompany Partial Differential Equations: Analytical and Numerical Methods, 2nd edition by Mark S. Gockenbach (SIAM, 2010) Maple Tutorial to accompany Partial Differential Equations: Analytical and Numerical Methods, 2nd edition by Mark S. Gockenbach (SIAM, 2010) Introduction In this introduction, I will explain the organization

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A B C D E F G Basic calculations Basic functions Secondary function and alpha keys Memory Lists Statistical graphs Working with functions 10 GRAPHICS CALCULATOR

More information

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below: Polar Coordinates Any point in the plane can be described by the Cartesian coordinates (x, y), where x and y are measured along the corresponding axes. However, this is not the only way to represent points

More information