Peter Hertel. University of Osnabrück, Germany. Lecture presented at APS, Nankai University, China.

Size: px
Start display at page:

Download "Peter Hertel. University of Osnabrück, Germany. Lecture presented at APS, Nankai University, China."

Transcription

1 s s University of Osnabrück, Germany Lecture presented at APS, Nankai University, China Spring 2012

2 s Structure your program into Scripts are unnecessary and should be avoided more on are objects they may be arguments of! example: integral more on function, or functionals example: the bisection algorithm

3 s Input and output values In mathematical language, a function y = f(x) maps a real valued variable x into a real valued variable y In Matlab the variable x has to be represented by a finite number of representative values such as x=linspace(0,2*pi,1024); which creates a row vector with 1024 equally spaced values in [0, 2π]. Endpoints are included. y=sin(x); returns the sine values of the representative values. Matlab may return more than one output value they must be grouped by [...] such as in [c,s]=cossin(x); Matlab may depend on no, one, or more arguments. Matlab may return no, one, or more results.

4 s function [c,s]=cossin(x) c=cos(x); s=sin(x); end % function cossin >> x=linspace(0,2*pi,1024); >> [a,b]=cossin(x); >> plot(x,a,x,b); >> axis tight

5 s Our first plot: cos(x) and sin(x) vs. x.

6 s A function fun is a piece of software. Either defined in an.m file, or built-in. It resides somewhere in RAM The RAM address of the function is means located at as is well known from addresses It is not the object itself, but a handle how to access the object for example, s=@sin says where the sine function is located in memory. y=sin(x) and y=s(x) return the same result, namely the sine of x. s can be variables themselves.

7 s Anonymous you may declare by their handle only 1./(1+(a*x).^2) the current value of a is used note the dots the handle has a name, here fh the function itself has no name (anonymous)

8 s als A functional is a function which depends on a function e.g. the integral quad(f, a, b) = b a dx f(x) quadrature (of the circle) in Matlab: q=quad(f,a,b) f must be a function, or anonymous >> f=@(x) sqrt(1-x.^2); >> pa=4*quad(f,0,1) pa =

9 s Squaring the circle About 1500 BC the Chinese used the modern decimals system About 450 BC, the Chinese mathematician and astronomer Zu Chongzhi approximated π by 355/113 This is correct for first seven digits About the same time, in ancient Greece, mathematicians (philosophers) tried to find an exact expression : reshape a figure so that it has the same area until it becomes a square, or a quadrate The Greek mathematician never reached their goal because this is not possible in a finite number of steps Only modern mathematics introduced infinite series and their limit values The integral is such a limit.

10 s Thabit ibn Qurra lived (arond 800 AD) and taught in Baghdad, today Irak. He invented a very elegant proof of Phythagoras s theorem.

11 s b c a By moving equally sized triangles, Thabit proved a 2 + b 2 = c 2.

12 s Accuracy A computer has only a finite number of states and a finite time to perform a calculation e.g. numbers like 2 or π are never exact Since a computer uses the binary number system, even 1/3 will be approximated therefore the quad function can calculate the integral with a finite accuracy only default is five digits this can be improved pa=4*quad(f,0,1,1e-12) is accurate for 11 digits note that quad can be called with three and with four arguments

13 s ode45 solve the ẏ = f(t, y) first, specify the by a function f = f(t, y) specify the time span tspn specify the initial condition y 0 [tout,yout]=ode45(@f,tspn,y0) does the job example: standard logistic curve ẏ = y(1 y) currently, the market share is 10%

14 s % calculate the standard logistic curve % for a given initial condition % setup the ydot=@(t,y) y.*(1-y); % time span ts=linspace(0,4,512); % initial condition y0=0.10; % solve it by ode45 [t,y]=ode45(ydot,ts,y0); % plot it plot(t,y); axis([0,4,0,1]); % export it print -deps slc.eps

15 s The standard logistic curve as solved numerically by ode45.

16 s algorithm Let f be a continuous function and [x 1, x 2 ] an interval. If f(x 1 ) and f(x 2 ) have different sign, then there is an x [x 1, x 2 ] such that f(x) = 0. In Matlab, f is a function handle. >> pa=2*bisection(@cos,0,2,1e-12); >> pa-pi e-13

17 s function x=bisection(f,x1,x2,tol) maxit=50; f1=f(x1); f2=f(x2); if f1*f2>0 error( bad initial interval ); end; it=1; while (abs(x2-x1)>abs(tol)) && (it<maxit) it=it+1; xc=(x1+x2)/2; fc=f(xc); if f1*fc<0 x2=xc; f2=fc; else x1=xc; f1=fc; end; end x=(x1+x2)/2; end % bisection

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

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines Math 18.02 (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines February 12 Reading Material: From Simmons: 17.1 and 17.2. Last time: Square Systems. Word problem. How many solutions?

More information

What is log a a equal to?

What is log a a equal to? How would you differentiate a function like y = sin ax? What is log a a equal to? How do you prove three 3-D points are collinear? What is the general equation of a straight line passing through (a,b)

More information

ARRAY VARIABLES (ROW VECTORS)

ARRAY VARIABLES (ROW VECTORS) 11 ARRAY VARIABLES (ROW VECTORS) % Variables in addition to being singular valued can be set up as AN ARRAY of numbers. If we have an array variable as a row of numbers we call it a ROW VECTOR. You can

More information

Exercises C-Programming

Exercises C-Programming Exercises C-Programming Claude Fuhrer (claude.fuhrer@bfh.ch) 0 November 016 Contents 1 Serie 1 1 Min function.................................. Triangle surface 1............................... 3 Triangle

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

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

1. Register an account on: using your Oxford address

1. Register an account on:   using your Oxford  address 1P10a MATLAB 1.1 Introduction MATLAB stands for Matrix Laboratories. It is a tool that provides a graphical interface for numerical and symbolic computation along with a number of data analysis, simulation

More information

4.7a Trig Inverses.notebook September 18, 2014

4.7a Trig Inverses.notebook September 18, 2014 WARM UP 9 18 14 Recall from Algebra 2 (or possibly see for the first time...): In order for a function to have an inverse that is also a function, it must be one to one, which means it must pass the horizontal

More information

Review of Trigonometry

Review of Trigonometry Worksheet 8 Properties of Trigonometric Functions Section Review of Trigonometry This section reviews some of the material covered in Worksheets 8, and The reader should be familiar with the trig ratios,

More information

AQA GCSE Further Maths Topic Areas

AQA GCSE Further Maths Topic Areas AQA GCSE Further Maths Topic Areas This document covers all the specific areas of the AQA GCSE Further Maths course, your job is to review all the topic areas, answering the questions if you feel you need

More information

EE 301 Signals & Systems I MATLAB Tutorial with Questions

EE 301 Signals & Systems I MATLAB Tutorial with Questions EE 301 Signals & Systems I MATLAB Tutorial with Questions Under the content of the course EE-301, this semester, some MATLAB questions will be assigned in addition to the usual theoretical questions. This

More information

Math Scientific Computing - Matlab Intro and Exercises: Spring 2003

Math Scientific Computing - Matlab Intro and Exercises: Spring 2003 Math 64 - Scientific Computing - Matlab Intro and Exercises: Spring 2003 Professor: L.G. de Pillis Time: TTh :5pm 2:30pm Location: Olin B43 February 3, 2003 Matlab Introduction On the Linux workstations,

More information

UNIT 3 CIRCLES AND VOLUME Lesson 5: Explaining and Applying Area and Volume Formulas Instruction

UNIT 3 CIRCLES AND VOLUME Lesson 5: Explaining and Applying Area and Volume Formulas Instruction Prerequisite Skills This lesson requires the use of the following skills: using formulas for the surface areas of polygons and circles performing calculations with the angles in circles using the Pythagorean

More information

SYDE 312 UNIT 4: EXTRA QUADRATURE PROBLEMS

SYDE 312 UNIT 4: EXTRA QUADRATURE PROBLEMS SYDE 3 UNIT 4: EXTRA QUADRATURE PROBLEMS Problem E x x + Use f(x) = /x x + You can t use the Matlab gaussquad file in the provided form, because it implements composite Gauss-Legendre quadrature with multiple

More information

Nested functions & Local functions

Nested functions & Local functions Lab 5 Nested functions & Local functions Nested functions are functions defined within functions. They are helpful when: - We wish to write small or temporary functions which do not merit creation of a

More information

Objectives. 1 Basic Calculations. 2 Matrix Algebra. Physical Sciences 12a Lab 0 Spring 2016

Objectives. 1 Basic Calculations. 2 Matrix Algebra. Physical Sciences 12a Lab 0 Spring 2016 Physical Sciences 12a Lab 0 Spring 2016 Objectives This lab is a tutorial designed to a very quick overview of some of the numerical skills that you ll need to get started in this class. It is meant to

More information

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name:

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name: 1 Matlab Tutorial 1- What is Matlab? Matlab is a powerful tool for almost any kind of mathematical application. It enables one to develop programs with a high degree of functionality. The user can write

More information

NUMERICAL INTEGRATION AND FUNCTION FUNCTIONS

NUMERICAL INTEGRATION AND FUNCTION FUNCTIONS NUMERICAL INTEGRATION AND FUNCTION FUNCTIONS The arguments of functions previously considered had constants, or vector or matrix variables as arguments. In this section we will see how to set up a function

More information

starting at (0, 0) (b) explanation C1 explanation eg pine cone has a very short width

starting at (0, 0) (b) explanation C1 explanation eg pine cone has a very short width 1 171 P1 for process to find one share P1 for process to find total A1 cao 2 plan C1 a partially correct plan C1 correct plan 3 t = 3(y + 2a) M1 adding 2a to both sides or multiplying each term by 3 A1

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab The purpose of this intro is to show some of Matlab s basic capabilities. Nir Gavish, 2.07 Contents Getting help Matlab development enviroment Variable definitions Mathematical operations

More information

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial STAT/MATH 395 A - PROBABILITY II UW Winter Quarter 2016 Néhémy Lim Matlab Tutorial 1 Introduction Matlab (standing for matrix laboratory) is a high-level programming language and interactive environment

More information

Objectives. 1 Running, and Interface Layout. 2 Toolboxes, Documentation and Tutorials. 3 Basic Calculations. PS 12a Laboratory 1 Spring 2014

Objectives. 1 Running, and Interface Layout. 2 Toolboxes, Documentation and Tutorials. 3 Basic Calculations. PS 12a Laboratory 1 Spring 2014 PS 12a Laboratory 1 Spring 2014 Objectives This session is a tutorial designed to a very quick overview of some of the numerical skills that you ll need to get started. Throughout the tutorial, the instructors

More information

Math 144 Activity #4 Connecting the unit circle to the graphs of the trig functions

Math 144 Activity #4 Connecting the unit circle to the graphs of the trig functions 144 p 1 Math 144 Activity #4 Connecting the unit circle to the graphs of the trig functions Graphing the sine function We are going to begin this activity with graphing the sine function ( y = sin x).

More information

Introduction to Matlab to Accompany Linear Algebra. Douglas Hundley Department of Mathematics and Statistics Whitman College

Introduction to Matlab to Accompany Linear Algebra. Douglas Hundley Department of Mathematics and Statistics Whitman College Introduction to Matlab to Accompany Linear Algebra Douglas Hundley Department of Mathematics and Statistics Whitman College August 27, 2018 2 Contents 1 Getting Started 5 1.1 Before We Begin........................................

More information

Basic Graphs. Dmitry Adamskiy 16 November 2011

Basic Graphs. Dmitry Adamskiy 16 November 2011 Basic Graphs Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 16 November 211 1 Plot Function plot(x,y): plots vector Y versus vector X X and Y must have the same size: X = [x1, x2 xn] and Y = [y1, y2,, yn] Broken

More information

P1 REVISION EXERCISE: 1

P1 REVISION EXERCISE: 1 P1 REVISION EXERCISE: 1 1. Solve the simultaneous equations: x + y = x +y = 11. For what values of p does the equation px +4x +(p 3) = 0 have equal roots? 3. Solve the equation 3 x 1 =7. Give your answer

More information

AP * Calculus Review. Area and Volume

AP * Calculus Review. Area and Volume AP * Calculus Review Area and Volume Student Packet Advanced Placement and AP are registered trademark of the College Entrance Examination Board. The College Board was not involved in the production of,

More information

Education Resources. This section is designed to provide examples which develop routine skills necessary for completion of this section.

Education Resources. This section is designed to provide examples which develop routine skills necessary for completion of this section. Education Resources Trigonometry Higher Mathematics Supplementary Resources Section A This section is designed to provide examples which develop routine skills necessary for completion of this section.

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

Programming 1. Script files. help cd Example:

Programming 1. Script files. help cd Example: Programming Until now we worked with Matlab interactively, executing simple statements line by line, often reentering the same sequences of commands. Alternatively, we can store the Matlab input commands

More information

TRIGONOMETRIC FUNCTIONS

TRIGONOMETRIC FUNCTIONS Chapter TRIGONOMETRIC FUNCTIONS.1 Introduction A mathematician knows how to solve a problem, he can not solve it. MILNE The word trigonometry is derived from the Greek words trigon and metron and it means

More information

Approximate First and Second Derivatives

Approximate First and Second Derivatives MTH229 Project 6 Exercises Approximate First and Second Derivatives NAME: SECTION: INSTRUCTOR: Exercise 1: Let f(x) = sin(x 2 ). We wish to find the derivative of f when x = π/4. a. Make a function m-file

More information

1 MATH 253 LECTURE NOTES for FRIDAY SEPT. 23,1988: edited March 26, 2013.

1 MATH 253 LECTURE NOTES for FRIDAY SEPT. 23,1988: edited March 26, 2013. 1 MATH 253 LECTURE NOTES for FRIDAY SEPT. 23,1988: edited March 26, 2013. TANGENTS Suppose that Apple Computers notices that every time they raise (or lower) the price of a $5,000 Mac II by $100, the number

More information

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression.

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. What is the answer? >> Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. The finite(x)is true for all finite numerical

More information

Getting Started. Chapter 1. How to Get Matlab. 1.1 Before We Begin Matlab to Accompany Lay s Linear Algebra Text

Getting Started. Chapter 1. How to Get Matlab. 1.1 Before We Begin Matlab to Accompany Lay s Linear Algebra Text Chapter 1 Getting Started How to Get Matlab Matlab physically resides on each of the computers in the Olin Hall labs. See your instructor if you need an account on these machines. If you are going to go

More information

2.3 Circular Functions of Real Numbers

2.3 Circular Functions of Real Numbers www.ck12.org Chapter 2. Graphing Trigonometric Functions 2.3 Circular Functions of Real Numbers Learning Objectives Graph the six trigonometric ratios as functions on the Cartesian plane. Identify the

More information

Computational Finance

Computational Finance Computational Finance Introduction to Matlab Marek Kolman Matlab program/programming language for technical computing particularly for numerical issues works on matrix/vector basis usually used for functional

More information

2 Computation with Floating-Point Numbers

2 Computation with Floating-Point Numbers 2 Computation with Floating-Point Numbers 2.1 Floating-Point Representation The notion of real numbers in mathematics is convenient for hand computations and formula manipulations. However, real numbers

More information

You are not expected to transform y = tan(x) or solve problems that involve the tangent function.

You are not expected to transform y = tan(x) or solve problems that involve the tangent function. In this unit, we will develop the graphs for y = sin(x), y = cos(x), and later y = tan(x), and identify the characteristic features of each. Transformations of y = sin(x) and y = cos(x) are performed and

More information

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment What is MATLAB? MATLAB PROGRAMMING Stands for MATrix LABoratory A software built around vectors and matrices A great tool for numerical computation of mathematical problems, such as Calculus Has powerful

More information

Introduction to Matlab

Introduction to Matlab What is Matlab? Introduction to Matlab Matlab is software written by a company called The Mathworks (mathworks.com), and was first created in 1984 to be a nice front end to the numerical routines created

More information

5.5 Newton s Approximation Method

5.5 Newton s Approximation Method 498CHAPTER 5. USING DERIVATIVES TO ANALYZE FUNCTIONS; FURTHER APPLICATIONS 4 3 y = x 4 3 f(x) = x cosx y = cosx 3 3 x = cosx x cosx = 0 Figure 5.: Figure showing the existence of a solution of x = cos

More information

Final Exam May 2, 2017

Final Exam May 2, 2017 Math 07 Calculus II Name: Final Exam May, 07 Circle the name of your instructor and, in the appropriate column, the name of your recitation leader. The second row is the time of your lecture. Radu Ledder

More information

y= sin( x) y= cos( x)

y= sin( x) y= cos( x) . The graphs of sin(x) and cos(x). Now I am going to define the two basic trig functions: sin(x) and cos(x). Study the diagram at the right. The circle has radius. The arm OP starts at the positive horizontal

More information

You know that the circumference of a specific circle divided by its diameter is the ratio pi, written as.

You know that the circumference of a specific circle divided by its diameter is the ratio pi, written as. Unit 6, Lesson.1 Circumference and Area of a Circle You have used the formulas for finding the circumference and area of a circle. In this lesson, you will prove why the formulas for circumference and

More information

Introduction to GNU-Octave

Introduction to GNU-Octave Introduction to GNU-Octave Dr. K.R. Chowdhary, Professor & Campus Director, JIETCOE JIET College of Engineering Email: kr.chowdhary@jietjodhpur.ac.in Web-Page: http://www.krchowdhary.com July 11, 2016

More information

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Ordinary Level

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Ordinary Level UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Ordinary Level * 9 4 95570362* ADDITIONAL MATHEMATICS 4037/12 Paper 1 May/June 2010 Additional Materials: Answer Booklet/Paper

More information

Math General Angles, Radian Measure, measures of arcs and sectors

Math General Angles, Radian Measure, measures of arcs and sectors Math-3 6-3 General Angles, Radian Measure, measures of arcs and sectors tan 5 9 5 h cos? 9 ϴ Tangent ratio gives sides of a right triangle. h h h 5 9 5 81 106 cos cos 9 106 9 106 106 cos 3 10 opp 10 sin?

More information

An Introduction to Numerical Methods

An Introduction to Numerical Methods An Introduction to Numerical Methods Using MATLAB Khyruddin Akbar Ansari, Ph.D., P.E. Bonni Dichone, Ph.D. SDC P U B L I C AT I O N S Better Textbooks. Lower Prices. www.sdcpublications.com Powered by

More information

Matlab Notes for Calculus 3. Lia Vas

Matlab Notes for Calculus 3. Lia Vas Matlab Notes for Calculus 3 Lia Vas Content 0. Review of Matlab. Representing Functions. Solving Equations. Basic Graphing. Differentiation and Integration. 1. Vectors. 2. Differentiation of Multi-variable

More information

PRECALCULUS MATH Trigonometry 9-12

PRECALCULUS MATH Trigonometry 9-12 1. Find angle measurements in degrees and radians based on the unit circle. 1. Students understand the notion of angle and how to measure it, both in degrees and radians. They can convert between degrees

More information

Floating-point representation

Floating-point representation Lecture 3-4: Floating-point representation and arithmetic Floating-point representation The notion of real numbers in mathematics is convenient for hand computations and formula manipulations. However,

More information

Cecil Jones Academy Mathematics Fundamentals

Cecil Jones Academy Mathematics Fundamentals Year 10 Fundamentals Core Knowledge Unit 1 Unit 2 Estimate with powers and roots Calculate with powers and roots Explore the impact of rounding Investigate similar triangles Explore trigonometry in right-angled

More information

Catholic Central High School

Catholic Central High School Catholic Central High School Algebra II Practice Examination I Instructions: 1. Show all work on the test copy itself for every problem where work is required. Points may be deducted if insufficient or

More information

EE 301 Lab 1 Introduction to MATLAB

EE 301 Lab 1 Introduction to MATLAB EE 301 Lab 1 Introduction to MATLAB 1 Introduction In this lab you will be introduced to MATLAB and its features and functions that are pertinent to EE 301. This lab is written with the assumption that

More information

Math 2412 Activity 4(Due with Final Exam)

Math 2412 Activity 4(Due with Final Exam) Math Activity (Due with Final Exam) Use properties of similar triangles to find the values of x and y x y 7 7 x 5 x y 7 For the angle in standard position with the point 5, on its terminal side, find the

More information

LECTURE 3-1 AREA OF A REGION BOUNDED BY CURVES

LECTURE 3-1 AREA OF A REGION BOUNDED BY CURVES 7 CALCULUS II DR. YOU 98 LECTURE 3- AREA OF A REGION BOUNDED BY CURVES If y = f(x) and y = g(x) are continuous on an interval [a, b] and f(x) g(x) for all x in [a, b], then the area of the region between

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

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

Catholic Central High School

Catholic Central High School Catholic Central High School Algebra II Practice Examination II Instructions: 1. Show all work on the test copy itself for every problem where work is required. Points may be deducted if insufficient or

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

MATLAB SUMMARY FOR MATH2070/2970

MATLAB SUMMARY FOR MATH2070/2970 MATLAB SUMMARY FOR MATH2070/2970 DUNCAN SUTHERLAND 1. Introduction The following is inted as a guide containing all relevant Matlab commands and concepts for MATH2070 and 2970. All code fragments should

More information

Laboratory 1 Octave Tutorial

Laboratory 1 Octave Tutorial Signals, Spectra and Signal Processing Laboratory 1 Octave Tutorial 1.1 Introduction The purpose of this lab 1 is to become familiar with the GNU Octave 2 software environment. 1.2 Octave Review All laboratory

More information

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed.

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed. Example 4 Printing and Plotting Matlab provides numerous print and plot options. This example illustrates the basics and provides enough detail that you can use it for typical classroom work and assignments.

More information

Handout 2 - Root Finding using MATLAB

Handout 2 - Root Finding using MATLAB Handout 2 - Root Finding using MATLAB Middle East Technical University MATLAB has couple of built-in root finding functions. In this handout we ll have a look at fzero, roots and solve functions. It is

More information

The diagram above shows a sketch of the curve C with parametric equations

The diagram above shows a sketch of the curve C with parametric equations 1. The diagram above shows a sketch of the curve C with parametric equations x = 5t 4, y = t(9 t ) The curve C cuts the x-axis at the points A and B. (a) Find the x-coordinate at the point A and the x-coordinate

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

Classes 7-8 (4 hours). Graphics in Matlab.

Classes 7-8 (4 hours). Graphics in Matlab. Classes 7-8 (4 hours). Graphics in Matlab. Graphics objects are displayed in a special window that opens with the command figure. At the same time, multiple windows can be opened, each one assigned a number.

More information

PYTHAGORAS THEOREM Lesson 3: Bent Bamboo

PYTHAGORAS THEOREM Lesson 3: Bent Bamboo PYTHAGORAS THEOREM Lesson 3: Bent Bamboo Australian Curriculum: Mathematics (Year 9/10) Australian Curriculum: Mathematics (Year 9) ACMMG222: Investigate Pythagoras Theorem and its application to solving

More information

JMG. Algebra II. Resigning from a job. Working with Radian Measures & the Unit Circle Students. How to Effectively Write a Letter of Resignation

JMG. Algebra II. Resigning from a job. Working with Radian Measures & the Unit Circle Students. How to Effectively Write a Letter of Resignation Lesson Plans Lesson Plan WEEK 35 May 8-May 12 Subject to change 2016-2017 Mrs. Whitman 1 st 2 nd Period 3 rd Period 4 th Period 5 th Period 6 th Period H S Mathematics Period Prep Geometry Math Extensions

More information

MATLAB Basics EE107: COMMUNICATION SYSTEMS HUSSAIN ELKOTBY

MATLAB Basics EE107: COMMUNICATION SYSTEMS HUSSAIN ELKOTBY MATLAB Basics EE107: COMMUNICATION SYSTEMS HUSSAIN ELKOTBY What is MATLAB? MATLAB (MATrix LABoratory) developed by The Mathworks, Inc. (http://www.mathworks.com) Key Features: High-level language for numerical

More information

Numerical Methods Lecture 7 - Optimization

Numerical Methods Lecture 7 - Optimization Numerical Methods Lecture 7 - Optimization Topics: numerical optimization - Newton again - Random search - Golden Section Search READING : text pgs. 331-349 Optimization - motivation What? Locating where

More information

MATH 104 First Midterm Exam - Fall (d) A solid has as its base the region in the xy-plane the region between the curve y = 1 x2

MATH 104 First Midterm Exam - Fall (d) A solid has as its base the region in the xy-plane the region between the curve y = 1 x2 MATH 14 First Midterm Exam - Fall 214 1. Find the area between the graphs of y = x 2 + x + 5 and y = 2x 2 x. 1. Find the area between the graphs of y = x 2 + 4x + 6 and y = 2x 2 x. 1. Find the area between

More information

User s Guide Version 4

User s Guide Version 4 User s Guide Version 4 Contents Introduction MATH-TEACHER PLUS series Tutorial Program For Student Exploration Environment The Curriculum Teachers Toolkit Technical Information Copyright 2004 Hickerson

More information

Today we will focus on solving for the sides and angles of non-right triangles when given two angles and a side.

Today we will focus on solving for the sides and angles of non-right triangles when given two angles and a side. 5.5 The Law of Sines Pre-Calculus. Use the Law of Sines to solve non-right triangles. Today we will focus on solving for the sides and angles of non-right triangles when given two angles and a side. Derivation:

More information

f( x ), or a solution to the equation f( x) 0. You are already familiar with ways of solving

f( x ), or a solution to the equation f( x) 0. You are already familiar with ways of solving The Bisection Method and Newton s Method. If f( x ) a function, then a number r for which f( r) 0 is called a zero or a root of the function f( x ), or a solution to the equation f( x) 0. You are already

More information

What You ll See in This Chapter. Word Cloud. René Descartes. Introduction. Ian Parberry University of North Texas. Fletcher Dunn

What You ll See in This Chapter. Word Cloud. René Descartes. Introduction. Ian Parberry University of North Texas. Fletcher Dunn What You ll See in This Chapter Chapter 1: Cartesian Coordinate Systems Fletcher Dunn Valve Software Ian Parberry University of North Texas This chapter describes the basic concepts of 3D math. It is divided

More information

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: #### Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 Lab partners: Lab#1 Presentation of lab reports The first thing we do is to create page headers. In Word 2007 do the following:

More information

MATH2070: LAB 3: Roots of Equations

MATH2070: LAB 3: Roots of Equations MATH2070: LAB 3: Roots of Equations 1 Introduction Introduction Exercise 1 A Sample Problem Exercise 2 The Bisection Idea Exercise 3 Programming Bisection Exercise 4 Variable Function Names Exercise 5

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

Page 1 of 7 E7 Spring 2009 Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Department of Civil and Environmental Engineering. Practice Midterm 01

Page 1 of 7 E7 Spring 2009 Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Department of Civil and Environmental Engineering. Practice Midterm 01 Page 1 of E Spring Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Practice Midterm 1 minutes pts Question Points Grade 1 4 3 6 4 16 6 1 Total Notes (a) Write your name and your SID on the top right

More information

For Test #1 study these problems, the examples in your notes, and the homework.

For Test #1 study these problems, the examples in your notes, and the homework. Mth 74 - Review Problems for Test Test covers Sections 6.-6.5, 7. and 7. For Test # study these problems, the examples in your notes, and the homework.. The base of a solid is the region inside the circle

More information

CALCULUS - PRACTICAL II - ELEMENTARY CALCULUS

CALCULUS - PRACTICAL II - ELEMENTARY CALCULUS CALCULUS - PRACTICAL II - ELEMENTARY CALCULUS PEDRO FORTUNY AYUSO The students will have already received the lessons about its, continuity and derivation although these concepts should not be new for

More information

CS 475 / CS 675 Computer Graphics. Lecture 16 : Interpolation for Animation

CS 475 / CS 675 Computer Graphics. Lecture 16 : Interpolation for Animation CS 475 / CS 675 Computer Graphics Lecture 16 : Interpolation for Keyframing Selected (key) frames are specified. Interpolation of intermediate frames. Simple and popular approach. May give incorrect (inconsistent)

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

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 INC151 Electrical Engineering Software Practice MATLAB Graphics Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 Graphical display is one of MATLAB s greatest strengths and most

More information

Trigonometric Graphs Dr. Laura J. Pyzdrowski

Trigonometric Graphs Dr. Laura J. Pyzdrowski 1 Names: About this Laboratory In this laboratory, we will examine trigonometric functions and their graphs. Upon completion of the lab, you should be able to quickly sketch such functions and determine

More information

AP Calculus BC. Find a formula for the area. B. The cross sections are squares with bases in the xy -plane.

AP Calculus BC. Find a formula for the area. B. The cross sections are squares with bases in the xy -plane. AP Calculus BC Find a formula for the area Homework Problems Section 7. Ax of the cross sections of the solid that are perpendicular to the x -axis. 1. The solid lies between the planes perpendicular to

More information

Math 113 Exam 1 Practice

Math 113 Exam 1 Practice Math Exam Practice January 6, 00 Exam will cover sections 6.-6.5 and 7.-7.5 This sheet has three sections. The first section will remind you about techniques and formulas that you should know. The second

More information

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB 1 INTRODUCTION TO MATLAB PLOTTING WITH MATLAB Plotting with MATLAB x-y plot Plotting with MATLAB MATLAB contains many powerful functions for easily creating plots of several different types. Command plot(x,y)

More information

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers Contents STRAND B: Number Theory Unit 7 Number System and Bases Student Text Contents Section 7. Number System 7.2 Binary Numbers 7.3 Adding and Subtracting Binary Numbers 7.4 Multiplying Binary Numbers

More information

2. Periodic functions have a repeating pattern called a cycle. Some examples from real-life that have repeating patterns might include:

2. Periodic functions have a repeating pattern called a cycle. Some examples from real-life that have repeating patterns might include: GRADE 2 APPLIED SINUSOIDAL FUNCTIONS CLASS NOTES Introduction. To date we have studied several functions : Function linear General Equation y = mx + b Graph; Diagram Usage; Occurence quadratic y =ax 2

More information

Best Student Exam (Open and Closed) Solutions Texas A&M High School Math Contest 8 November 2014

Best Student Exam (Open and Closed) Solutions Texas A&M High School Math Contest 8 November 2014 Best Student Exam (Open and Closed) Solutions Texas A&M High School Math Contest 8 November 2014 1. The numbers 1, 2, 3, etc. are written down one after the other up to 1000, without any commas, in one

More information

Angle Measure 1. Use the relationship π rad = 180 to express the following angle measures in radian measure. a) 180 b) 135 c) 270 d) 258

Angle Measure 1. Use the relationship π rad = 180 to express the following angle measures in radian measure. a) 180 b) 135 c) 270 d) 258 Chapter 4 Prerequisite Skills BLM 4-1.. Angle Measure 1. Use the relationship π rad = 180 to express the following angle measures in radian measure. a) 180 b) 135 c) 70 d) 58. Use the relationship 1 =!

More information

Summer 2009 REU: Introduction to Matlab

Summer 2009 REU: Introduction to Matlab Summer 2009 REU: Introduction to Matlab Moysey Brio & Paul Dostert June 29, 2009 1 / 19 Using Matlab for the First Time Click on Matlab icon (Windows) or type >> matlab & in the terminal in Linux. Many

More information

The Maximum Area of a Cyclic (n+2)-gon Theorem

The Maximum Area of a Cyclic (n+2)-gon Theorem The Maximum Area of a Cyclic (n+)-gon Theorem David Balmin San Diego, California, U.S.A. Abstract This paper offers the proof of the theorem about the maximum area of a cyclic polygon with one fixed side

More information

Chapel Hill Math Circle: Symmetry and Fractals

Chapel Hill Math Circle: Symmetry and Fractals Chapel Hill Math Circle: Symmetry and Fractals 10/7/17 1 Introduction This worksheet will explore symmetry. To mathematicians, a symmetry of an object is, roughly speaking, a transformation that does not

More information

MATLAB Tutorial Matrices & Vectors MATRICES AND VECTORS

MATLAB Tutorial Matrices & Vectors MATRICES AND VECTORS MATRICES AND VECTORS A matrix (m x n) with m rows and n columns, a column vector (m x 1) with m rows and 1 column, and a row vector (1 x m) with 1 row and m columns all can be used in MATLAB. Matrices

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