ME 142 Engineering Computation I

Slides:



Advertisements
Similar presentations
Chapter 6: Roots: Open Methods
Advertisements

Roundoff and truncation errors
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
CSE 330: Numerical Methods
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
Newton’s Method finds Zeros Efficiently finds Zeros of an equation: –Solves f(x)=0 Why do we care?
Roots: Bracketing Methods
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 7 Roots of Equations Bracketing Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 6 Roots of Equations Bracketing Methods.
Roots of Equations Bracketing Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 20 Solution of Linear System of Equations - Iterative Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 19 Solution of Linear System of Equations - Iterative Methods.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Bracketing Methods Chapter 5 The Islamic University of Gaza
Theorems on continuous functions. Weierstrass’ theorem Let f(x) be a continuous function over a closed bounded interval [a,b] Then f(x) has at least one.
Chapter 14: Numerical Methods
CMPSC 200 Spring 2013 Lecture 38 November 18 or 20, 2013 (depending on section)
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
Part 2 Chapter 5 Roots: Bracketing Methods PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
A technique for approximating the real zeros of a Function.
5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off.
Newton’s Method, Root Finding with MATLAB and Excel
Numerical Methods and Computational Techniques Solution of Transcendental and Polynomial Equations.
ME 142 Engineering Computation I Root Finding & Iterative Solutions.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 5 Bracketing Methods.
Solution of Nonlinear Equations Topic: Bisection method
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
ME 142 Engineering Computation I Review Exam 1.  2 Part Exam In-Class Portion Testing Center Portion Equally weighted.
1/29/ Bisection Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
Recursive Methods for Finding Roots of Functions Bisection & Newton’s Method.
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
Iteration The solution lies between 0 and 1. e.g. To find integer bounds for we can sketch and  0 and 1 are the integer bounds. We often start by finding.
6/13/ Secant Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
CSE 330: Numerical Methods. What is true error? True error is the difference between the true value (also called the exact value) and the approximate.
Lecture 4 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
7/11/ Bisection Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
Answers for Review Questions for Lectures 1-4. Review Lectures 1-4 Problems Question 2. Derive a closed form for the estimate of the solution of the equation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 / Chapter 5.
Rearranging the equation f(x)=0 into the form x=g(x)
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Bracketing Methods (Bisection Method)
Solution of Nonlinear Equations (Root finding Problems
Numerical Methods.
Newton’s Method for Systems of Non Linear Equations
Lecture 4: Numerical Methods
Numerical Methods.
Section Euler’s Method
Chemical Engineering Majors Authors: Autar Kaw, Jai Paul
College Algebra Chapter 3 Polynomial and Rational Functions
Roots of equations Class IX.
Bisection Method.
A graphing calculator is required for some problems or parts of problems 2000.
SOLUTION OF NONLINEAR EQUATIONS
Roots: Bracketing Methods
A step-by-step process of trial and improvement
3.8 Newton’s Method How do you find a root of the following function without a graphing calculator? This is what Newton did.
3.8: Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
3.8: Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
Choose the differential equation corresponding to this direction field
Assignment 1: due 1/16/19 Estimate all of the zero of x3-x2-2x+1 graphically. Write a MatLab code for Newton’s method. Use your code to refine the graphical.
Objectives Approximate a definite integral using the Trapezoidal Rule.
Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
Quadratic Equation Day 4
Roots: Bracketing Methods
MATH 1910 Chapter 3 Section 8 Newton’s Method.
Industrial Engineering Majors Authors: Autar Kaw, Jai Paul
1 Newton’s Method.
Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
Presentation transcript:

ME 142 Engineering Computation I Root Finding & Iterative Solutions

Using a Graph to Find Roots Approximate process May be used as a starting process to an iterative method May want to refine axis max/min values to focus on plot on area of interest

Using a Graph to Find Roots x y -10 -196 -9 -158 -8 -124 -7 -94 -6 -68 -5 -46 -4 -28 -3 -14 -2 -1 2 4 1 3 5 6 7 8 9 10

Bisection Routine Begin with initial guess: xlow, xhi Calculate corresponding f(x): f(xlow), f(xhi) f(xlow)*f(xhi)<0, to ensure root lies within interval Estimate Root and calculate corresponding f(xroot) Determine subinterval of root If f(xlow)*f(xroot)<0 , set xhi=xroot If f(xlow)*f(xroot)>0, set xlow=xroot Repeat Steps 3-4 until desired tolerance is reached

Bisection Routine Determine subinterval of root x y -10 -196 -9 -158 -8 -124 -7 -94 -6 -68 -5 -46 -4 -28 -3 -14 -2 -1 2 Determine subinterval of root If f(xlow)*f(xroot)<0 , set xhi=xroot If f(xlow)*f(xroot)>0, set xlow=xroot Xlow f(Xlow) Xhigh f(Xhigh) Xroot f(Xroot) f(Xlow)*f(Xroot) -2 -4 -1 2 -1.5 -0.5 -1.25 0.875 -0.4375 -1.375 0.21875 -0.109375 -1.4375 -0.13281 0.06640625 -1.40625 0.044922 -0.005966187 -1.421875 -0.04346 0.005771637

Goal Seek Function Begin with initial guess “x” value Define function, f(x), related to initial guess Use Goal Seek function to find root

Goal Seek Function

Goal Seek Function Accuracy of Goal Seek function can be controlled in Excel Options You may need to set the following: Maximum Iterations Maximum Change