EE, NCKU Tien-Hao Chang (Darby Chang)

Slides:



Advertisements
Similar presentations
EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
Advertisements

1 A B C
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Simplifications of Context-Free Grammars
PDAs Accept Context-Free Languages
AP STUDY SESSION 2.
1
EuroCondens SGB E.
Slide 1Fig 26-CO, p.795. Slide 2Fig 26-1, p.796 Slide 3Fig 26-2, p.797.
Slide 1Fig 25-CO, p.762. Slide 2Fig 25-1, p.765 Slide 3Fig 25-2, p.765.
STATISTICS INTERVAL ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
Addition and Subtraction Equations
David Burdett May 11, 2004 Package Binding for WS CDL.
Create an Application Title 1Y - Youth Chapter 5.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
CHAPTER 18 The Ankle and Lower Leg
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
The 5S numbers game..
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Media-Monitoring Final Report April - May 2010 News.
Break Time Remaining 10:00.
The basics for simulations
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Factoring Quadratics — ax² + bx + c Topic
PP Test Review Sections 6-1 to 6-6
Regression with Panel Data
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Biology 2 Plant Kingdom Identification Test Review.
Chapter 1: Expressions, Equations, & Inequalities
Adding Up In Chunks.
FAFSA on the Web Preview Presentation December 2013.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
1 Termination and shape-shifting heaps Byron Cook Microsoft Research, Cambridge Joint work with Josh Berdine, Dino Distefano, and.
Artificial Intelligence
When you see… Find the zeros You think….
Midterm Review Part II Midterm Review Part II 40.
Before Between After.
Slide R - 1 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Prentice Hall Active Learning Lecture Slides For use with Classroom Response.
12 October, 2014 St Joseph's College ADVANCED HIGHER REVISION 1 ADVANCED HIGHER MATHS REVISION AND FORMULAE UNIT 2.
Subtraction: Adding UP
: 3 00.
5 minutes.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Static Equilibrium; Elasticity and Fracture
Converting a Fraction to %
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Clock will move after 1 minute
famous photographer Ara Guler famous photographer ARA GULER.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 11 Simple Linear Regression.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
Copyright Tim Morris/St Stephen's School
1.step PMIT start + initial project data input Concept Concept.
9. Two Functions of Two Random Variables
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
Meat Identification Quiz
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Presentation transcript:

EE, NCKU Tien-Hao Chang (Darby Chang) Numerical Analysis EE, NCKU Tien-Hao Chang (Darby Chang)

In the previous slide Error (motivation) Floating point number system difference to real number system problem of roundoff Introduced/propagated error Focus on numerical methods three bugs

About the exercise

In this slide Rootfinding Bisection method False position multiplicity Intermediate Value Theorem convergence measures False position yet another simple enclosure method advantage and disadvantage in comparison with bisection method

Given a function 𝑓, find a 𝑥 such that 𝑓 𝑥 =0 Rootfinding Given a function 𝑓, find a 𝑥 such that 𝑓 𝑥 =0

Is a rootfinding problem

Multiplicity

Definition

Multiplicity for polynomials For polynomials, multiplicity can be determined by factoring the polynomial That’s easy, but

For non-polynomials What about this 𝑓 𝑥 =0, where 𝑓 𝑥 =2𝑥+ ln 1−𝑥 1+𝑥 Clearly, 𝑓 0 =0, so the 𝑓(𝑥) has a root at 𝑥=0 But what is the multiplicity? 𝑓 0 = 𝑓 ′ 0 = 𝑓 ′′ 0 =0, but 𝑓 ′′′ 0 =−4 the equation has a root of multiplicity 3 at 𝑥=0 answer

For non-polynomials What about this 𝑓 𝑥 =0, where 𝑓 𝑥 =2𝑥+ ln 1−𝑥 1+𝑥 Clearly, 𝑓 0 =0, so the 𝑓(𝑥) has a root at 𝑥=0 But what is the multiplicity? 𝑓 0 = 𝑓 ′ 0 = 𝑓 ′′ 0 =0, but 𝑓 ′′′ 0 =−4 the equation has a root of multiplicity 3 at 𝑥=0

Rootfinding methods 2 categories Simple enclosure simple enclosure methods fixed point iteration schemes Simple enclosure bisection and false position guaranteed to converge to a root, but slow Fixed point iteration Newton’s method and secant method fast, but require stronger conditions to guarantee convergence

A pathological example

2.1 The Bisection Method

Bisection method The most basic simple enclosure method All simple enclosure methods are based on Intermediate Value Theorem

Drawing proof for Intermediate Value Theorem

In Plain English Find an interval of that the endpoints are opposite sign Since one endpoint value is positive and the other negative, zero is somewhere between the values, that is, at least one root on that interval

Bisection method The objective is to systematically shrink the size of that root enclosing interval The simplest and most natural way is to cut the interval in half Next is to determine which half contains a root Intermediate Value Theorem, again Repeat the process on that half

Bisection method

In action 𝑓 𝑥 = 𝑥 3 +2 𝑥 2 −3𝑥−1, and 𝑎 1 , 𝑏 1 =(1,2)

You know what the bisection method is, but so far it is not an algorithm, why?

An algorithm requires a stopping condition

Convergence of {pn}

Note The bisection method converges to a root of 𝑓, not the root of 𝑓 what’s the difference? 𝑓 𝑎 𝑓 𝑏 <0 guarantees the existence of a root, but not uniqueness, and the bisection method converge to one of these roots The bisection method cannot locate roots of even multiplicity (the sign does not change on either side of such roots) is common to all simple enclosure techniques

Rate of convergence, 𝑂( 1 2 𝑛 ) Order of convergence, 𝛼=1 and 𝜆= 1 2 http://www.dianadepasquale.com/ThinkingMonkey.jpg Rate of convergence, 𝑂( 1 2 𝑛 ) Order of convergence, 𝛼=1 and 𝜆= 1 2

We are now in position to select a stopping condition

Convergence measures For any rootfinding technique, we have 3 convergence measures to construct the stopping condition absolute error 𝑝 𝑛 −𝑝 <𝜀 relative error 𝑝 𝑛 −𝑝 𝑝 𝑛 <𝜀 test 𝑓(𝑝 𝑛 ) <𝜀

No one is always better than another Which is the Best? No one is always better than another answer

No one is always better than another Which is the Best? No one is always better than another

Algorithm Suppose that we decide to use the absolute error 𝑝 𝑛 −𝑝 <𝜀, but we don’t know the value of p With the theorem, we can now construct an algorithm

Note Performance measure Underflow number of 𝑓 evaluations rather than number of iterations (𝑓 could involve many floating point operations) Underflow both 𝑓(𝑎) and 𝑓(𝑝) will approaching zero work with the signs rather than the sign of the product 𝑓 𝑎 𝑓(𝑝)

Summary of bisection method Advantage straightforward inexpensive (1 evaluation per iteration) guarantee to converge Disadvantage error estimation can be overly pessimistic (drawing for a extreme case of bisection method)

2.1 The Bisection Method

The Method of False Position 2.2 The Method of False Position

False position Very similar to bisection method Only differ in selecting 𝑝 𝑛

Selecting 𝑝 𝑛 False position uses more information values of 𝑓 𝑎 𝑛 and 𝑓 𝑏 𝑛 rather than just the signs

Which method is better?

Which method is better From another aspect to only the convergence rate bisection method provides a theoretical bound of error, but no error estimate false position provides computable error estimate (the only one advantage of false position) Thus, we can have a more appropriate stopping condition for false position (we will use this advantage in Section 2.6)

Since false position has no theoretical bound of error, it requires effort to prove the convergence

Convergence analysis One observation to proceed the convergence analysis one of the endpoints remains fixed the other endpoint is just the previous approximation Namely an=an-1, bn=pn-1 or bn=bn-1, an=pn-1 observation

The first problem

The second problem

The third problem

Convergence analysis One observation to proceed the convergence analysis one of the endpoints remains fixed the other endpoint is just the previous approximation Namely 𝑎 𝑛 = 𝑎 𝑛−1 , 𝑏 𝑛 = 𝑝 𝑛−1 or 𝑏 𝑛 = 𝑏 𝑛−1 , 𝑎 𝑛 = 𝑝 𝑛−1

Go back to the equation (4) 𝑏 𝑛 −𝑝 = 𝑝 𝑛−1 −𝑝 = 𝑒 𝑛−1

Guarantee to convergence Now we know 𝑒 𝑛 ≈𝜆 𝑒 𝑛−1 One question that remains is whether 𝜆 is less than 1 answer

Guarantee to convergence Now we know 𝑒 𝑛 ≈𝜆 𝑒 𝑛−1 One question that remains is whether 𝜆 is less than 1

The first condition The remaining three conditions can be proved in a similar fashion

Now it’s time to select a stopping condition

Stopping condition Suppose the absolute error is used We have 𝑒 𝑛 ≈𝜆 𝑒 𝑛−1 We have to estimate 𝑒 𝑛

The first problem

The second problem

The third problem

2.2 The Method of False Position