Computer Programming for Engineers ENGR Spring 2015 Week 3

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Chapter 7 Numerical Differentiation and Integration
Curve-Fitting Polynomial Interpolation
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
Simpson’s 1/3 rd Rule of Integration. What is Integration? Integration The process of measuring the area under a.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
Numerical Integration In general, a numerical integration is the approximation of a definite integration by a “weighted” sum of function values at discretized.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Numerical Integration Approximating Definite Integral.
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
1 Numerical Analysis Lecture 12 Numerical Integration Dr. Nader Okasha.
Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
4.6 Numerical Integration. The Trapezoidal Rule One method to approximate a definite integral is to use n trapezoids.
CSE 330 : Numerical Methods
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Performance & Stability Analysis.
CHAPTER 3 NUMERICAL METHODS
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
BE207 Numerical Analysis using Matlab Lecturer DR Abdullah Awad Faculty of Engineering.
1 INTERPOLASI. Direct Method of Interpolation 3 What is Interpolation ? Given (x 0,y 0 ), (x 1,y 1 ), …… (x n,y n ), find the value of ‘y’ at a value.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall 5.5 Trapezoidal Rule.
6. Numerical Integration 6.1 Definition of numerical integration. 6.2 Reasons to use numerical integration. 6.3 Formulas of numerical Integration. 6.4.
The formulae for the roots of a 3rd degree polynomial are given below
Quadrature – Concepts (numerical integration) Don Allen.
ENGINEERING 2304 Computer Programming for Engineers ENGR Summer 2015 Class 3.
6 May, University of Portsmouth Department of Mathematics Project Presentation Barycentric representation of some interpolants: Theory and numerics.
Numerical Integration
Warm up ON A SEPARATE SHEET OF PAPER, ANSWER THE FOLLOWING:
CHAPTER 3 NUMERICAL METHODS
Air Force Admin College, Coimbatore
Chapter 6 Polynomials Review
Warm Ups Term 2 Week 6.
Welcome to Computers in Civil Engineering 53:081 Spring 2003
NUMERICAL DIFFERENTIATION Forward Difference Formula
Part 6 - Chapter 21.
LECTURE 4 OF SOLUTIONS OF NON-LINEAR EQUATIONS OBJECTIVES
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 42.
The formulae for the roots of a 3rd degree polynomial are given below
The formulae for the roots of a 3rd degree polynomial are given below
1. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand a= lower limit of integration b=
Chapter 18.
Computer Programming for Engineers ENGR Summer 2015 Class 4
LECTURE 3 OF SOLUTIONS OF NON -LINEAR EQUATIONS.
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
NUMERICAL DIFFERENTIATION AND INTEGRATION
The formulae for the roots of a 3rd degree polynomial are given below
MATH 2140 Numerical Methods
Copyright © Cengage Learning. All rights reserved.
MATH 2140 Numerical Methods
Copyright © Cengage Learning. All rights reserved.
Warm Up Simplify: a)
POLYNOMIAL INTERPOLATION
MATH-321 In One Slide MATH-321 & MATLAB Command.
WELCOME TO MY CLASS NUMERICAL METHOD Name : Masduki
The formulae for the roots of a 3rd degree polynomial are given below
Numerical Computation and Optimization
CPE 332 Computer Engineering Mathematics II
Introduction CSE 541.
MATH 2140 Numerical Methods
The formulae for the roots of a 3rd degree polynomial are given below
The formulae for the roots of a 3rd degree polynomial are given below
Numerical Integration
Air Force Admin College, Coimbatore
Presentation transcript:

Computer Programming for Engineers ENGR 2304-51191 Spring 2015 Week 3 ENGINEERING 2304 Computer Programming for Engineers ENGR 2304-51191 Spring 2015 Week 3

Class Outline Quiz Review Homework Interpolation Area Approximation: Rectangle Method and Trapezoidal Rule Simpson’s Rule Newton-Raphson Method Practice Exercises

Week 3 Quiz Pull out a sheet of paper and solve the following problems: Compute an amortization table for a six-month loan of $6000 at 5% real interest value. For a reminder, the formula for a monthly payment is: If f(x)=3x^2-2x+3, and g(x)=x+2, find: a) f(3) and f’(4). f(g(x)). M=𝑃∗ 𝑟 1− 1 1+𝑟 𝑛

Quotes of the Day: “If in other sciences we should arrive at certainty without doubt and truth without error, it behooves us to place the foundations of knowledge in mathematics.” –Roger Bacon, Opus Majus, 1267

"Mankind has made giant steps forward…However, what we know is really very, very little compared to what we still have to know.“ –Fabiola Gianotti, CERN Particle Physicist, ATLAS detector coordinator, 2012

Homework 2 Overview

Linear Interpolation Interpolation can be used to approximate an unknown value between two known points. It consists of finding an equation between the two known points, and finding the desired point on that equation. Numerous interpolation methods exist. For linear interpolation: 𝑦= 𝑦 0 + 𝑦 1 − 𝑦 0 𝑥−𝑥 0 𝑥 1 −𝑥 0

Approximating Area: Rectangle Method Method of Approximating Area Under a Polynomial or Other Function 𝑎 𝑏 𝑓 𝑥 𝑑𝑥≈ℎ 𝑛=0 𝑁−1 𝑓( 𝑥 𝑛 ) Where ℎ= 𝑏−𝑎 𝑁 and 𝑥 𝑛 =𝑎+𝑛ℎ

Approximating Area: Trapezoidal Rule Another Method of Approximating Area Under a Polynomial or Other Function 𝑎 𝑏 𝑓 𝑥 𝑑𝑥≈ ℎ 2 𝑘=1 𝑁 𝑓 𝑥 𝑘+1 +𝑓( 𝑥 𝑘 )

Numerical Integration: Simpson’s Rule A method of numerical integration by dividing an equation up into regions and approximating the area of each region by the function: Width of each region need not be the same. 𝑎 𝑏 𝑓 𝑥 𝑑𝑥≈ 𝑏−𝑎 6 𝑓 𝑎 +4𝑓 𝑏+𝑎 2 +𝑓(𝑏)

Approximating Roots: The Newton-Raphson Method A method of iterating to the roots of a real-value, differentiable function. 𝑥:𝑓 𝑥 =0 𝑥 1 = 𝑥 0 − 𝑓( 𝑥 0 ) 𝑓′( 𝑥 0 ) 𝑥 𝑛+1 = 𝑥 𝑛 − 𝑓( 𝑥 𝑛 ) 𝑓′( 𝑥 𝑛 )

Example 1: Interpolation Exercise

Example 2: Area Example y=3x^2-2x+3 Find the area from x=-3 to x=+3 using various numerical integration methods.

Example 3: Newton-Raphson Method Use the Newton-Raphson Method to find the two intercepts of y=-3x^2-2x+3