Therefore, the root is in the second interval and the lower guess is redefined as x l = The second iteration is
|
|
- Teresa Logan
- 6 years ago
- Views:
Transcription
1 1 CHAPTER The function to evaluate is gm gc d f ( cd ) tanh t v( t) c d m or substituting the given values 9.81(65) 9.81 ( ) tanh cd f c 4.5 d 35 c 65 d The first iteration is f (.) f (.5) ( ) Therefore, the root is in the second interval and the lower guess is redefined as x l.5. The second iteration is ε a % 9.9%.75 f (.5) f (.75) ( ).633 Therefore, the root is in the first interval and the upper guess is redefined as x u.75. The remainder of the iterations are displayed in the following table: i x l f(x l ) x u f(x u ) f( ) ε a % % % % Thus, after five iterations, we obtain a root estimate of with an approximate error of 1.15%. 5. function root bisectnew(func,xl,xu,ead)
2 % bisectnew(xl,xu,es,maxit): % uses bisection method to find the root of a function % with a fixed number of iterations to attain % a prespecified tolerance % input: % func name of function % xl, xu lower and upper guesses % Ead (optional) desired tolerance (default.1) % output: % root real root if func(xl)*func(xu)> %if guesses do not bracket a sign change error('no bracket') %display an error message and terminate % if necessary, assign default values if nargin<4, Ead.1; %if Ead blank set to.1 % bisection xr xl; % compute n and round up to next highest integer n round(1 + log((xu - xl)/ead) +.5); for i 1:n xrold xr; xr (xl + xu)/; if xr ~, ea abs((xr - xrold)/xr) * 1; test func(xl)*func(xr); if test < xu xr; elseif test > xl xr; else ea ; root xr; The following is a MATLAB session that uses the function to solve Prob. 5.1 with E a,d.1. >> format long >> fcd@(cd) sqrt(9.81*65/cd)*tanh(sqrt(9.81*cd/65)*4.5)-35; >> bisectnew(fcd,.,.3,.1) ans The function to evaluate is 9.81(65) 9.81 ( ) tanh cd f c 4.5 d 35 c 65 d The first iteration is
3 (..3) ( ) f (.) f (.71833) ( ).946 Therefore, the root is in the first interval and the upper guess is redefined as x u The second iteration is (..7183) ( ) ε a %.66%.7457 Therefore, after only two iterations we obtain a root estimate of.7457 with an approximate error of.66% which is below the stopping criterion of %. 5.4 function root falsepos(func,xl,xu,es,maxit) % falsepos(func,xl,xu,es,maxit): % uses the false position method to find the root % of the function func % input: % func name of function % xl, xu lower and upper guesses % es (optional) stopping criterion (%) (default.1) % maxit (optional) maximum allowable iterations (default 5) % output: % root real root if func(xl)*func(xu)> %if guesses do not bracket a sign change error('no bracket') %display an error message and terminate % default values if nargin<5, maxit5; if nargin<4, es.1; % false position iter ; xr xl; while (1) xrold xr; xr xu - func(xu)*(xl - xu)/(func(xl) - func(xu)); iter iter + 1; if xr ~, ea abs((xr - xrold)/xr) * 1; test func(xl)*func(xr); if test < xu xr; elseif test > xl xr; else ea ;
4 4 if ea < es iter > maxit, break, root xr; The following is a MATLAB session that uses the function to solve Prob. 5.1: >> format long >> fcd@(cd) sqrt(9.81*65/cd)*tanh(sqrt(9.81*cd/65)*4.5)-35; >> falsepos(fcd,.,.3,) ans Solve for the reactions: R 1 65 lbs. R 85 lbs. Write beam equations: <x<3 3<x<6 6<x<1 1<x<1 x M + (16.667x ) 65x 3 (1) M 65x x x 3 M + 1( x 3)( ) + 15( x () M 5x + 415x 15 3 (3)) 3 M 15( x (3)) + 3( x 4.5) 65x 3 (3) M 185x M + 1(1 x) (4) M 1x 1 65x A plot of these equations can be generated: <x<3 3<x<6 6<x<1 1<x<1 Combining Equations: Because the curve crosses the axis between 6 and 1, use (3).
5 5 (3) M 185 x Set x L 6 ; x 1 U L U ) 54 ) ) 17 x r replaces x R x L L + x U 8 L U ) x 9 ) r ) 15 replaces R x U L U ) x 8.5 ) 15 r ) replaces R x L L U ) x 8.75 ) 15 r ) replaces R x L L U ) x ) 15 r ) replaces R x L L U ) x ) 15 r ) replaces R x U L U ) 8.15 ) ) replaces R x L L U ) ) ) replaces R x U ) L x U ) r M ( ).8984 Therefore, x feet x R 5.6 (a) The graph can be generated with MATLAB >> x[-1:.1:6]; >> f-14-*x+19*x.^-3*x.^3;
6 6 >> plot(x,f) >> grid This plot indicates that roots are located at about.5, and 4.7. (b) Using bisection, the first iteration is f ( 1) f (.5) 8(1.15) 31.5 Therefore, the root is in the second interval and the lower guess is redefined as x l.5. The second iteration is ε a.5 (.5) 1% 1%.5 f (.5) f (.5) 1.15( ) Therefore, the root is in the first interval and the upper guess is redefined as x u.5. The remainder of the iterations are displayed in the following table: i x l x u f(x l ) f( ) f(x l ) f( ) ε a % % %
7 % % % % % Thus, after eight iterations, we obtain a root estimate of.4766 with an approximate error of.83%, which is below the stopping criterion of 1%. (c) Using false position, the first iteration is 14( 1 ) ( 14) f ( 1) f (.33333) 8( ) Therefore, the root is in the first interval and the upper guess is redefined as x u The second iteration is ( 1 (.33333)) ( ) ε a.4364 (.33333) 1% 3.59%.4364 f ( 1) f (.4364) 8( 1.418) Therefore, the root is in the first interval and the upper guess is redefined as x u The remainder of the iterations are displayed in the following table: i x l f(x l ) x u f(x u ) f( ) f(x l ) f( ) ε a % % % % Therefore, after five iterations we obtain a root estimate of with an approximate error of.357%, which is below the stopping criterion of 1%. 5.7 A graph of the function can be generated with MATLAB >> x[-.5:.1:1.5]; >> fsin(x)-x.^3; >> plot(x,f);grid This plot indicates that a nontrivial root (i.e., nonzero) is located at about.9.
8 8 Using bisection, the first iteration is f (.5) f (.75).35446( ).967 Therefore, the root is in the second interval and the lower guess is redefined as x l.75. The second iteration is ε a 1% 14.9%.875 f (.75) f (.875).59764(.97616).5359 Because the product is positive, the root is in the second interval and the lower guess is redefined as x l.875. All the iterations are displayed in the following table: i x l f(x l ) x u f(x u ) f( ) ε a % % % % Consequently, after five iterations we obtain a root estimate of with an approximate error of 1.69%, which is below the stopping criterion of %. The result can be checked by substituting it into the original equation to verify that it is close to zero.
9 9 f ( x) sin( x) x 3 sin(.91875) (a) A graph of the function indicates a positive real root at approximately x (b) Using bisection, the first iteration is ε a 1% 6% +.5 f (.5) f (1.5) (.1957) Therefore, the root is in the first interval and the upper guess is redefined as x u 1.5. The second iteration is ε a 1% 4.86%.875 f (.5) f (.875) ( ) Consequently, the root is in the second interval and the lower guess is redefined as x l.875. All the iterations are displayed in the following table: i x l x u f(x l ) f( ) f(x l ) f( ) ε a % % Thus, after three iterations, we obtain a root estimate of 1.65 with an approximate error of 17.65%. (c) Using false position, the first iteration is.759(.5 ) f (.5) f ( ) (.75678).6797 Therefore, the root is in the first interval and the upper guess is redefined as x u The second iteration is
10 1 ε a.75678( ) % 13.% f (.5) f (1.717) (.67).931 Consequently, the root is in the first interval and the upper guess is redefined as x u All the iterations are displayed in the following table: iteration x l x u f(x l ) f(x u ) f( ) f(x l ) f( ) ε a % % After three iterations we obtain a root estimate of with an approximate error of 4.414%. 5.9 (a) Equation (5.6) can be used to determine the number of iterations 4 log Δx n log E a, d which can be rounded up to 1 iterations. (b) Here is an M-file that evaluates the temperature in o C using 1 iterations of bisection based on a given value of the oxygen saturation concentration in freshwater: function TC TempEval(osf) % function to evaluate the temperature in degrees C based % on the oxygen saturation concentration in freshwater (osf). xl ; xu ; if fta(xl,osf)*fta(xu,osf)> %if guesses do not bracket error('no bracket') %display an error message and terminate xr xl; for i 1:1 xrold xr; xr (xl + xu)/; if xr ~, ea abs((xr - xrold)/xr) * 1; test fta(xl,osf)*fta(xr,osf); if test < xu xr; elseif test > xl xr; else ea ;
11 11 TC xr ; function f fta(ta, osf) f e5/Ta e7/Ta^; f f e1/Ta^ e11/Ta^4; f f - log(osf); The function can be used to evaluate the test cases: >> TempEval(8) ans >> TempEval(1) ans >> TempEval(1) ans Note that these values can be compared with the true values to verify that the errors are less than.5: o sf Approximation Exact Error (a) The function to be evaluated is 4 f ( y) 1 (3 + y) (3 y + y / ) A graph of the function indicates a positive real root at approximately (b) Using bisection, the first iteration is
12 f (.5) f (1.5) 3.58(.3946) Therefore, the root is in the second interval and the lower guess is redefined as x l 1.5. The second iteration is ε a 1% 5% f ( 1.5) f ().3946(.6189).1864 Therefore, the root is in the first interval and the upper guess is redefined as x u. All the iterations are displayed in the following table: i x l f(x l ) x u f(x u ) f( ) ε a % % % % % % % After eight iterations, we obtain a root estimate of with an approximate error of.5%. (c) Using false position, the first iteration is.8133(.5.5) f (.5) f (.4583) 3.581(.79987) Therefore, the root is in the first interval and the upper guess is redefined as x u The second iteration is.79987( ) ε a 1% 1.96% f (.5) f (.4363) 3.58(.7861) The root is in the first interval and the upper guess is redefined as x u All the iterations are displayed in the following table:
13 13 i x l f(x l ) x u f(x u ) f( ) ε a % % % % % % % % % After ten iterations we obtain a root estimate of.977 with an approximate error of 1.59%. Thus, after ten iterations, the false position method is converging at a very slow pace and is still far from the root in the vicinity of 1.5 that we detected graphically. Discussion: This is a classic example of a case where false position performs poorly and is inferior to bisection. Insight into these results can be gained by examining the plot that was developed in part (a). This function violates the premise upon which false position was based that is, if f(x u ) is much closer to zero than f(x l ), then the root is closer to x u than to x l (recall Figs. 5.8 and 5.9). Because of the shape of the present function, the opposite is true Errata: In the first printing, the solution to the differential equation should have been: S S vm t + k s ln( S / S) Subsequent printings should show the correct solution. The problem amounts to determining the root of f ( m s S) S v t + k ln( S / S) S The following script calls the bisect function (Fig. 5.7) for various values of t in order to generate the solution. S1;vm.5;ks; S - vm * t + ks * log(s / S) - S; t:5;s:5; for i 1:n S(i)bisect(f,.1,1.1,1e-6,1,t(i)); plot(t,s)
14 The function to be solved is (4 + x) f ( x).16 (4 x) (8 x) (a) A plot of the function indicates a root at about x (b) The shape of the function indicates that false position would be a poor choice (recall Fig. 5.9). Bisection with initial guesses of and can be used to determine a root of after 8 iterations with ε a.493%. Note that false position would have required 68 iterations to attain comparable accuracy. i x l x u f(x l ) f( ) f(x l ) f( ) ε a % x % % x % x1-5 4.% x % x1-6.99% x %
15 This problem can be solved by determining the root of the derivative of the elastic curve dy dx w 1EIL 4 4 ( 5x + 6L x ) L Therefore, after substituting the parameter values, we must determine the root of 4 f ( x) 5x +,16,x A plot of the function indicates a root at about x 7. E+11 1E+11-1E+11 -E Bisection can be used to determine the root. Here are the first few iterations: i x l x u f(x l ) f( ) f(x l ) f( ) ε a x x x x x x % x x x1.% x x x % x x1 9.95x % After iterations, the root is determined as x This value can be substituted into Eq. (P5.13) to compute the maximum deflection as y.5 1(5,)3,(6) ( (68.38) 5.14 The solution can be formulated as i(1 + i) f ( i) 5, 5,5 6 (1 + i) 1 6 A plot of this function suggests a root at about.86: + 7,(68.38) (68.38)).51519
16 A numerical method can be used to determine that the root is (a) The solution can be formulated as f ( t) 1. 75,.45t 3, ( e + 1,).8t 1 + 9e A plot of this function suggests a root at about 4: (b) The false-position method can be implemented with the results summarized as i t l t u f(t l ) f(t u ) t r f(t r ) f(t l ) f(t r ) ε a x x % x % x1 4.9% x1-3.1% (c) The modified secant method (with δ.1) can be implemented with the results summarized as i t i f(t i ) δt i t i +δt i f(t i +δt i ) f (t i ) ε a % % %
17 17 For both parts (b) and (c), the root is determined to be t At this time, the ratio of the suburban to the urban population is 135,14.5/11, The solution can be formulated as f ( N) q N + N + 4 where n i ρ μ 1 μ Substituting this value along with the other parameters gives f ( N) N + N A plot of this function indicates a root at about N E+6 4.E+6.E+6.E+.E+ -.E+6 1.E+1.E+1-4.E+6 (b) The bisection method can be implemented with the results for the first 5 iterations summarized as i N l N u N r f(n l ) f(n r ) f(n l ) f(n r ) ε a 1 5.x x1 1 1.x1 1.3x x1 5-7x x1 9 1.x x1 9.3x x x % 3 7.5x1 9 1.x x x1 5.6x x % x1 9 1.x x1 9.6x x x % x x x1 9.6x x x % After 15 iterations, the root is with a relative error of.3%. (c) The modified secant method (with δ.1) can be implemented with the results summarized as i N i f(n i ) δn i N i +δn i f(n i +δn i ) f (N i ) ε a
18 18 9.x x1 4 9.x x x x x1 9.6x x x % 9.8x x1 9.8x x x % 3 9.8x x1-9.8x x x % 5.17 Using the given values, the roots problem to be solved is f ( x) ( x x +.81) 3 / A plot indicates roots at about.3 and A numerical method can be used to determine that the roots are.9537 and The solution can be formulated as ( Re f ) f ( f ) 4 log1.4 1 f We want our program to work for Reynolds numbers between,5 and 1,,. Therefore, we must determine the friction factors corresponding to these limits. This can be done with any root location method to yield.1155 and.913. Therefore, we can set our initial guesses as x l.8 and x u.1. Equation (5.6) can be used to determine the number of bisection iterations required to attain an absolute error less than.5,.1.8 log Δx n log E a, d which can be rounded up to 11 iterations. Here is a MATLAB function that is set up to implement 11 iterations of bisection to solve the problem. function ffanning(func,xl,xu,varargin) test func(xl,varargin{:})*func(xu,varargin{:}); if test>,error('no sign change'), for i 1:11 xr (xl + xu)/; test func(xl,varargin{:})*func(xr,varargin{:}); if test <
19 19 xu xr; elseif test > xl xr; else break fxr; This can be implemented in MATLAB. For example, >> 4*log1(Re*sqrt(f))-.4-1/sqrt(f); >> format long >> ffanning(vk,.8,.1,5) f Here are additional results for a number of values within the desired range. We have included the true value and the resulting error to verify that the results are within the desired error criterion of E a < Re Root Truth E t x x x x x x x The solution can be formulated as 4 f ( T ) T T T T MATLAB can be used to determine all the roots of this polynomial, >> format long >> x[1.95e e e e ]; >> roots(x) ans 1.e+3 * i i The only realistic value is This value can be checked using the polyval function,
20 >> polyval(x, ) ans e The solution can be formulated as m f ( t) u ln gt v m qt Substituting the parameter values gives 15, f ( t), ln 9.81t 75 15,,7t A plot of this function indicates a root at about t Because two initial guesses are given, a bracketing method like bisection can be used to determine the root, i t l t u t r f(t l ) f(t r ) f(t l ) f(t r ) ε a % % % % % % % Thus, after 8 iterations, the approximate error falls below 1% with a result of t Note that if the computation is continued, the root can be determined as
Chapter 5 Roots of Equations: Bracketing Models. Gab-Byung Chae
Chapter 5 Roots of Equations: Bracketing Models Gab-Byung Chae 2008 4 17 2 Chapter Objectives Studying Bracketing Methods Understanding what roots problems are and where they occur in engineering and science.
More information6.1 The function can be set up for fixed-point iteration by solving it for x
1 CHAPTER 6 6.1 The function can be set up for fied-point iteration by solving it for 1 sin i i Using an initial guess of 0 = 0.5, the first iteration yields 1 sin 0.5 0.649637 a 0.649637 0.5 100% 3% 0.649637
More informationFinding Roots of Equations
Finding Roots of Equations Solution Methods Overview Bisection/Half-interval Search Method of false position/regula Falsi Secant Method Newton Raphson Iteration Method Many more. Open Methods Bracketing
More informationApplied Numerical Methods With MATLAB for Engineers and Scientists
Solutions Manual to accompany Applied Numerical Methods With MATLAB for Engineers and Scientists Steven C. Chapra Tufts University CHAPTER. You are given the following differential equation with the initial
More informationNumerical Methods School of Mechanical Engineering Chung-Ang University
Part 2 Chapter 5 Roots: Bracketing Methods Prof. Hae-Jin Choi hjchoi@cau.ac.kr 1 Overview of Part 2 l To find the roots of general second order polynomial, the quadratic formula is used b b 2 2 - ± - 4ac
More informationTWO METHODS FOR OF EQUATIONS
TWO METHODS FOR FINDING ROOTS OF EQUATIONS Closed (Bracketing) Methods Open Methods Motivation: i In engineering applications, it is often necessary to determine the rootofan of equation when a formula
More informationNumerical Methods Lecture 3
Numerical Methods Lecture 3 Nonlinear Equations by Pavel Ludvík Introduction Definition (Root or zero of a function) A root (or a zero) of a function f is a solution of an equation f (x) = 0. We learn
More informationBisection and False Position Dr. Marco A. Arocha Aug, 2014
Bisection and False Position Dr. Marco A. Arocha Aug, 2014 1 Given function f, we seek x values for which f(x)=0 Solution x is the root of the equation or zero of the function f Problem is known as root
More informationRoot Finding: Close Methods. Bisection and False Position Dr. Marco A. Arocha Aug, 2014
Root Finding: Close Methods Bisection and False Position Dr. Marco A. Arocha Aug, 2014 1 Roots Given function f(x), we seek x values for which f(x)=0 Solution x is the root of the equation or zero of the
More informationMATH 3795 Lecture 12. Numerical Solution of Nonlinear Equations.
MATH 3795 Lecture 12. Numerical Solution of Nonlinear Equations. Dmitriy Leykekhman Fall 2008 Goals Learn about different methods for the solution of f(x) = 0, their advantages and disadvantages. Convergence
More informationSolution of Algebric & Transcendental Equations
Page15 Solution of Algebric & Transcendental Equations Contents: o Introduction o Evaluation of Polynomials by Horner s Method o Methods of solving non linear equations o Bracketing Methods o Bisection
More informationScientific Computing. Roots of Equations
ECE257 Numerical Methods and Scientific Computing Roots of Equations Today s s class: Roots of Equations Bracketing Methods Roots of Equations Given a function f(x), the roots are those values of x that
More informationNumerical Methods. Root Finding
Numerical Methods Solving Non Linear 1-Dimensional Equations Root Finding Given a real valued function f of one variable (say ), the idea is to find an such that: f() 0 1 Root Finding Eamples Find real
More informationNumerical Analysis Fall. Roots: Open Methods
Numerical Analysis 2015 Fall Roots: Open Methods Open Methods Open methods differ from bracketing methods, in that they require only a single starting value or two starting values that do not necessarily
More informationCHAPTER 4 ROOTS OF EQUATIONS
CHAPTER 4 ROOTS OF EQUATIONS Chapter 3 : TOPIC COVERS (ROOTS OF EQUATIONS) Definition of Root of Equations Bracketing Method Graphical Method Bisection Method False Position Method Open Method One-Point
More informationNumerical Methods. Roots of Equations
Roots of Equations by Norhayati Rosli & Nadirah Mohd Nasir Faculty of Industrial Sciences & Technology norhayati@ump.edu.my, nadirah@ump.edu.my Description AIMS This chapter is aimed to compute the root(s)
More informationCE 205 Numerical Methods. Some of the analysis methods you have used so far.. Algebra Calculus Differential Equations etc.
CE 205 Numerical Methods Dr. Charisma Choudhury Lecture 1 March 30, 2009 Objective Some of the analysis methods you have used so far.. Algebra Calculus Differential Equations etc. Often not possible to
More informationInstructor: Marios M. Fyrillas HOMEWORK ASSIGNMENT ON NUMERICAL SOLUTION OF NONLINEAR EQUATIONS
AMAT 34 Numerical Methods Instructor: Marios M. Fyrillas Email: m.fyrillas@fit.ac.cy Office Tel.: 34559/60 Ext. 3 HOMEWORK ASSIGNMENT ON NUMERICAL SOLUTION OF NONLINEAR EQUATIONS Question You are required
More informationToday s class. Numerical differentiation Roots of equation Bracketing methods. Numerical Methods, Fall 2011 Lecture 4. Prof. Jinbo Bi CSE, UConn
Today s class Numerical differentiation Roots of equation Bracketing methods 1 Numerical Differentiation Finite divided difference First forward difference First backward difference Lecture 3 2 Numerical
More informationNumerical Methods School of Mechanical Engineering Chung-Ang University
Part 2 Chapter 7 Optimization Prof. Hae-Jin Choi hjchoi@cau.ac.kr 1 Chapter Objectives l Understanding why and where optimization occurs in engineering and scientific problem solving. l Recognizing the
More informationR x n. 2 R We simplify this algebraically, obtaining 2x n x n 1 x n x n
Math 42 Homework 4. page 3, #9 This is a modification of the bisection method. Write a MATLAB function similar to bisect.m. Here, given the points P a a,f a and P b b,f b with f a f b,we compute the point
More informationFigure 1: Graph of y = x cos(x)
Chapter The Solution of Nonlinear Equations f(x) = 0 In this chapter we will study methods for find the solutions of functions of single variables, ie values of x such that f(x) = 0 For example, f(x) =
More informationNumerical Solution of f(x) = 0
Numerical Solution of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@pdx.edu ME 350: Finding roots of f(x) = 0 Overview Topics covered in these slides
More informationSolving Non-Linear Equations (Root Finding)
Solving Non-Linear Equations (Root Finding) Root finding Methods What are root finding methods? Methods for determining a solution of an equation. Essentially finding a root of a function, that is, a zero
More informationChapter 2 Solutions of Equations of One Variable
Chapter 2 Solutions of Equations of One Variable 2.1 Bisection Method In this chapter we consider one of the most basic problems of numerical approximation, the root-finding problem. This process involves
More informationMath 551 Homework Assignment 3 Page 1 of 6
Math 551 Homework Assignment 3 Page 1 of 6 Name and section: ID number: E-mail: 1. Consider Newton s method for finding + α with α > 0 by finding the positive root of f(x) = x 2 α = 0. Assuming that x
More informationMath Introduction to Numerical Methods - Winter 2011 Homework 2 Assigned: Friday, January 14, Due: Thursday, January 27,
Math 371 - Introduction to Numerical Methods - Winter 2011 Homework 2 Assigned: Friday, January 14, 2011. Due: Thursday, January 27, 2011.. Include a cover page. You do not need to hand in a problem sheet.
More informationFinding the Roots of f(x) = 0. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University
Finding the Roots of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:
More informationFinding the Roots of f(x) = 0
Finding the Roots of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:
More informationGoals for This Lecture:
Goals for This Lecture: Learn the Newton-Raphson method for finding real roots of real functions Learn the Bisection method for finding real roots of a real function Look at efficient implementations of
More informationSection 1.4 Tangents and Velocity
Math 132 Tangents and Velocity Section 1.4 Section 1.4 Tangents and Velocity Tangent Lines A tangent line to a curve is a line that just touches the curve. In terms of a circle, the definition is very
More informationCS 221 Lecture 9. Tuesday, 1 November 2011
CS 221 Lecture 9 Tuesday, 1 November 2011 Some slides in this lecture are from the publisher s slides for Engineering Computation: An Introduction Using MATLAB and Excel 2009 McGraw-Hill Today s Agenda
More informationNUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR)
NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR) Autumn Session UNIT 1 Numerical analysis is the study of algorithms that uses, creates and implements algorithms for obtaining numerical solutions to problems
More informationCHAPTER Order points and then develop a divided difference table:
1 CHAPTER 17 17.1 Order points and then develop a divided difference table: x y First Second Third Fourth Fifth Sixth 5 5.75 -.45 0.75 -.E-17 1.51788E-18 7.54895E-19 -.5719E-19 1.8 16.415 -.075 0.75-1.7E-17
More informationJanuary 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,
Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB, Part I: Basics MATLAB Environment Getting Help Variables Vectors, Matrices, and
More information1 The best of all possible worlds
Notes for 2017-03-18 1 The best of all possible worlds Last time, we discussed three methods of solving f(x) = 0: Newton, modified Newton, and bisection. Newton is potentially faster than bisection; bisection
More informationMath Numerical Analysis Mid-Term Test Solutions
Math 400 - Numerical Analysis Mid-Term Test Solutions. Short Answers (a) A sufficient and necessary condition for the bisection method to find a root of f(x) on the interval [a,b] is f(a)f(b) < 0 or f(a)
More informationNumerical Methods. King Saud University
Numerical Methods King Saud University Aims In this lecture, we will... Introduce the topic of numerical methods Consider the Error analysis and sources of errors Introduction A numerical method which
More informationLecture 7. Root finding I. 1 Introduction. 2 Graphical solution
1 Introduction Lecture 7 Root finding I For our present purposes, root finding is the process of finding a real value of x which solves the equation f (x)=0. Since the equation g x =h x can be rewritten
More informationPowerPoints organized by Dr. Michael R. Gustafson II, Duke University
Part 1 Chapter 4 Roundoff and Truncation Errors PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction
More informationLecture 8. Root finding II
1 Introduction Lecture 8 Root finding II In the previous lecture we considered the bisection root-bracketing algorithm. It requires only that the function be continuous and that we have a root bracketed
More informationNumerical Analysis. EE, NCKU Tien-Hao Chang (Darby Chang)
Numerical Analysis EE, NCKU Tien-Hao Chang (Darby Chang) 1 In the previous slide Error (motivation) Floating point number system difference to real number system problem of roundoff Introduced/propagated
More informationPART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435
PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435 Professor Biswa Nath Datta Department of Mathematical Sciences Northern Illinois University DeKalb, IL. 60115 USA E mail: dattab@math.niu.edu
More informationQ. 의학연구에의하면 4초후에낙하속도가 36 m/s를초과하면척추손상을입을가능성이높다. 항력계수가 kg/m 로주어질때이러한판정기준이초과하는질량을구하시오.
수치해석 161009 Ch5. Roots: Bracketing Methods 1 앞의낙하속도문제에서 v( t) gm gcd = tanh t c d m Q. 의학연구에의하면 4초후에낙하속도가 36 m/s를초과하면척추손상을입을가능성이높다. 항력계수가 0.25 kg/m 로주어질때이러한판정기준이초과하는질량을구하시오. gm gc d f( m) = tanh t v( t)
More informationOutline. Math Numerical Analysis. Intermediate Value Theorem. Lecture Notes Zeros and Roots. Joseph M. Mahaffy,
Outline Math 541 - Numerical Analysis Lecture Notes Zeros and Roots Joseph M. Mahaffy, jmahaffy@mail.sdsu.edu Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research
More informationMath Numerical Analysis
Math 541 - Numerical Analysis Lecture Notes Zeros and Roots Joseph M. Mahaffy, jmahaffy@mail.sdsu.edu Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research Center
More information" $ CALCULUS 2 WORKSHEET #21. t, y = t + 1. are A) x = 0, y = 0 B) x = 0 only C) x = 1, y = 0 D) x = 1 only E) x= 0, y = 1
CALCULUS 2 WORKSHEET #2. The asymptotes of the graph of the parametric equations x = t t, y = t + are A) x = 0, y = 0 B) x = 0 only C) x =, y = 0 D) x = only E) x= 0, y = 2. What are the coordinates of
More informationIntroductory Numerical Analysis
Introductory Numerical Analysis Lecture Notes December 16, 017 Contents 1 Introduction to 1 11 Floating Point Numbers 1 1 Computational Errors 13 Algorithm 3 14 Calculus Review 3 Root Finding 5 1 Bisection
More informationRoot finding. Eugeniy E. Mikhailov. Lecture 06. The College of William & Mary. Eugeniy Mikhailov (W&M) Practical Computing Lecture 06 1 / 10
Root finding Eugeniy E. Mikhailov The College of William & Mary Lecture 06 Eugeniy Mikhailov (W&M) Practical Computing Lecture 06 1 / 10 Root finding problem Generally we want to solve the following canonical
More informationVirtual University of Pakistan
Virtual University of Pakistan File Version v.0.0 Prepared For: Final Term Note: Use Table Of Content to view the Topics, In PDF(Portable Document Format) format, you can check Bookmarks menu Disclaimer:
More informationPLC Papers. Created For:
PLC Papers Created For: Algebra and proof 2 Grade 8 Objective: Use algebra to construct proofs Question 1 a) If n is a positive integer explain why the expression 2n + 1 is always an odd number. b) Use
More informationcha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO
cha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO ROOTS OF EQUATIONS PT2.1 MOTIVATION Years ago, you learned to use the quadratic formula x = b ± b 2 4ac 2a to solve f(x) = ax 2 + bx + c = 0 (PT2.1) (PT2.2)
More informationQueens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.
Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 2018 3 Lecture 3 3.1 General remarks March 4, 2018 This
More informationScientific Computing. Roots of Equations
ECE257 Numerical Methods and Scientific Computing Roots of Equations Today s s class: Roots of Equations Polynomials Polynomials A polynomial is of the form: ( x) = a 0 + a 1 x + a 2 x 2 +L+ a n x n f
More informationMAE 107 Homework 8 Solutions
MAE 107 Homework 8 Solutions 1. Newton s method to solve 3exp( x) = 2x starting at x 0 = 11. With chosen f(x), indicate x n, f(x n ), and f (x n ) at each step stopping at the first n such that f(x n )
More informationROOT FINDING REVIEW MICHELLE FENG
ROOT FINDING REVIEW MICHELLE FENG 1.1. Bisection Method. 1. Root Finding Methods (1) Very naive approach based on the Intermediate Value Theorem (2) You need to be looking in an interval with only one
More informationCLASS NOTES Models, Algorithms and Data: Introduction to computing 2018
CLASS NOTES Models, Algorithms and Data: Introduction to computing 2018 Petros Koumoutsakos, Jens Honore Walther (Last update: April 16, 2018) IMPORTANT DISCLAIMERS 1. REFERENCES: Much of the material
More informationRoot finding. Root finding problem. Root finding problem. Root finding problem. Notes. Eugeniy E. Mikhailov. Lecture 05. Notes
Root finding Eugeniy E. Mikhailov The College of William & Mary Lecture 05 Eugeniy Mikhailov (W&M) Practical Computing Lecture 05 1 / 10 2 sin(x) 1 = 0 2 sin(x) 1 = 0 Often we have a problem which looks
More information15 Nonlinear Equations and Zero-Finders
15 Nonlinear Equations and Zero-Finders This lecture describes several methods for the solution of nonlinear equations. In particular, we will discuss the computation of zeros of nonlinear functions f(x).
More informationChapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS
Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS 5.1 Introduction When a physical system depends on more than one variable a general
More informationSKMM 3023 Applied Numerical Methods
SKMM 3023 Applied Numerical Methods Solution of Nonlinear Equations ibn Abdullah Faculty of Mechanical Engineering Òº ÙÐÐ ÚºÒÙÐÐ ¾¼½ SKMM 3023 Applied Numerical Methods Solution of Nonlinear Equations
More informationRoot finding. Eugeniy E. Mikhailov. Lecture 05. The College of William & Mary. Eugeniy Mikhailov (W&M) Practical Computing Lecture 05 1 / 10
Root finding Eugeniy E. Mikhailov The College of William & Mary Lecture 05 Eugeniy Mikhailov (W&M) Practical Computing Lecture 05 1 / 10 Root finding problem Generally we want to solve the following canonical
More informationInfinite series, improper integrals, and Taylor series
Chapter Infinite series, improper integrals, and Taylor series. Determine which of the following sequences converge or diverge (a) {e n } (b) {2 n } (c) {ne 2n } (d) { 2 n } (e) {n } (f) {ln(n)} 2.2 Which
More informationComputational Methods. Solving Equations
Computational Methods Solving Equations Manfred Huber 2010 1 Solving Equations Solving scalar equations is an elemental task that arises in a wide range of applications Corresponds to finding parameters
More informationTHE SECANT METHOD. q(x) = a 0 + a 1 x. with
THE SECANT METHOD Newton s method was based on using the line tangent to the curve of y = f (x), with the point of tangency (x 0, f (x 0 )). When x 0 α, the graph of the tangent line is approximately the
More informationMATH 2053 Calculus I Review for the Final Exam
MATH 05 Calculus I Review for the Final Exam (x+ x) 9 x 9 1. Find the limit: lim x 0. x. Find the limit: lim x + x x (x ).. Find lim x (x 5) = L, find such that f(x) L < 0.01 whenever 0 < x
More informationHomework and Computer Problems for Math*2130 (W17).
Homework and Computer Problems for Math*2130 (W17). MARCUS R. GARVIE 1 December 21, 2016 1 Department of Mathematics & Statistics, University of Guelph NOTES: These questions are a bare minimum. You should
More informationChapter 12: Iterative Methods
ES 40: Scientific and Engineering Computation. Uchechukwu Ofoegbu Temple University Chapter : Iterative Methods ES 40: Scientific and Engineering Computation. Gauss-Seidel Method The Gauss-Seidel method
More informationSME 3023 Applied Numerical Methods
UNIVERSITI TEKNOLOGI MALAYSIA SME 3023 Applied Numerical Methods Solution of Nonlinear Equations Abu Hasan Abdullah Faculty of Mechanical Engineering Sept 2012 Abu Hasan Abdullah (FME) SME 3023 Applied
More informationComputational Methods for Engineers Programming in Engineering Problem Solving
Computational Methods for Engineers Programming in Engineering Problem Solving Abu Hasan Abdullah January 6, 2009 Abu Hasan Abdullah 2009 An Engineering Problem Problem Statement: The length of a belt
More informationLIMITS AND DERIVATIVES
2 LIMITS AND DERIVATIVES LIMITS AND DERIVATIVES 2.2 The Limit of a Function In this section, we will learn: About limits in general and about numerical and graphical methods for computing them. THE LIMIT
More informationCHAPTER-II ROOTS OF EQUATIONS
CHAPTER-II ROOTS OF EQUATIONS 2.1 Introduction The roots or zeros of equations can be simply defined as the values of x that makes f(x) =0. There are many ways to solve for roots of equations. For some
More informationProject 2: Using linear systems for numerical solution of boundary value problems
LINEAR ALGEBRA, MATH 124 Instructor: Dr. T.I. Lakoba Project 2: Using linear systems for numerical solution of boundary value problems Goal Introduce one of the most important applications of Linear Algebra
More informationChapter 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence
Chapter 6 Nonlinear Equations 6. The Problem of Nonlinear Root-finding In this module we consider the problem of using numerical techniques to find the roots of nonlinear equations, f () =. Initially we
More informationFinal exam (practice) UCLA: Math 31B, Spring 2017
Instructor: Noah White Date: Final exam (practice) UCLA: Math 31B, Spring 2017 This exam has 8 questions, for a total of 80 points. Please print your working and answers neatly. Write your solutions in
More information5. Hand in the entire exam booklet and your computer score sheet.
WINTER 2016 MATH*2130 Final Exam Last name: (PRINT) First name: Student #: Instructor: M. R. Garvie 19 April, 2016 INSTRUCTIONS: 1. This is a closed book examination, but a calculator is allowed. The test
More informationZeroes of Transcendental and Polynomial Equations. Bisection method, Regula-falsi method and Newton-Raphson method
Zeroes of Transcendental and Polynomial Equations Bisection method, Regula-falsi method and Newton-Raphson method PRELIMINARIES Solution of equation f (x) = 0 A number (real or complex) is a root of the
More informationINTRODUCTION TO NUMERICAL ANALYSIS
INTRODUCTION TO NUMERICAL ANALYSIS Cho, Hyoung Kyu Department of Nuclear Engineering Seoul National University 3. SOLVING NONLINEAR EQUATIONS 3.1 Background 3.2 Estimation of errors in numerical solutions
More informationOutline. Additional Nonlinear Systems. Abstract. Finding Equilibrium Points Numerically. Newton s Method
Outline Finding Equilibrium Points Numerically Additional Nonlinear Systems James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University June 13, 2017
More informationHomework 2 - Solutions MA/CS 375, Fall 2005
Homework 2 - Solutions MA/CS 375, Fall 2005 1. Use the bisection method, Newton s method, and the Matlab R function fzero to compute a positive real number x satisfying: sinh x = cos x. For each of the
More informationa k 0, then k + 1 = 2 lim 1 + 1
Math 7 - Midterm - Form A - Page From the desk of C. Davis Buenger. https://people.math.osu.edu/buenger.8/ Problem a) [3 pts] If lim a k = then a k converges. False: The divergence test states that if
More informationDetermining the Roots of Non-Linear Equations Part I
Determining the Roots of Non-Linear Equations Part I Prof. Dr. Florian Rupp German University of Technology in Oman (GUtech) Introduction to Numerical Methods for ENG & CS (Mathematics IV) Spring Term
More informationVariable. Peter W. White Fall 2018 / Numerical Analysis. Department of Mathematics Tarleton State University
Newton s Iterative s Peter W. White white@tarleton.edu Department of Mathematics Tarleton State University Fall 2018 / Numerical Analysis Overview Newton s Iterative s Newton s Iterative s Newton s Iterative
More informationEngg. Math. I. Unit-I. Differential Calculus
Dr. Satish Shukla 1 of 50 Engg. Math. I Unit-I Differential Calculus Syllabus: Limits of functions, continuous functions, uniform continuity, monotone and inverse functions. Differentiable functions, Rolle
More informationExam 3 MATH Calculus I
Trinity College December 03, 2015 MATH 131-01 Calculus I By signing below, you attest that you have neither given nor received help of any kind on this exam. Signature: Printed Name: Instructions: Show
More informationMarquette University
Marquette University 2 0 7 C O M P E T I T I V E S C H O L A R S H I P E X A M I N A T I O N I N M A T H E M A T I C S Do not open this booklet until you are directed to do so.. Fill out completely the
More informationTest one Review Cal 2
Name: Class: Date: ID: A Test one Review Cal 2 Short Answer. Write the following expression as a logarithm of a single quantity. lnx 2ln x 2 ˆ 6 2. Write the following expression as a logarithm of a single
More information1.4 CONTINUITY AND ITS CONSEQUENCES
Continuity: Informal Idea We say that a function is continuous on an interval if its graph on that t interval can be drawn without t interruption, ti that is, without lifting the pencil from the paper.
More informationDA 2: Linear Approximation
Differentiation Applications 2: Linear Approximation 159 DA 2: Linear Approximation Model 1: Sleepy Road Trip You are on a road trip with your family and have been traveling for nearly two hours on small
More informationMath 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS
Math 473: Practice Problems for Test 1, Fall 011, SOLUTIONS Show your work: 1. (a) Compute the Taylor polynomials P n (x) for f(x) = sin x and x 0 = 0. Solution: Compute f(x) = sin x, f (x) = cos x, f
More informationCHAPTER 2 EXTRACTION OF THE QUADRATICS FROM REAL ALGEBRAIC POLYNOMIAL
24 CHAPTER 2 EXTRACTION OF THE QUADRATICS FROM REAL ALGEBRAIC POLYNOMIAL 2.1 INTRODUCTION Polynomial factorization is a mathematical problem, which is often encountered in applied sciences and many of
More informationNumerical techniques to solve equations
Programming for Applications in Geomatics, Physical Geography and Ecosystem Science (NGEN13) Numerical techniques to solve equations vaughan.phillips@nateko.lu.se Vaughan Phillips Associate Professor,
More informationNumerical Methods - Preliminaries
Numerical Methods - Preliminaries Y. K. Goh Universiti Tunku Abdul Rahman 2013 Y. K. Goh (UTAR) Numerical Methods - Preliminaries 2013 1 / 58 Table of Contents 1 Introduction to Numerical Methods Numerical
More informationSOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD
BISECTION METHOD If a function f(x) is continuous between a and b, and f(a) and f(b) are of opposite signs, then there exists at least one root between a and b. It is shown graphically as, Let f a be negative
More informationSecond Printing Errata for Advanced Engineering Mathematics, by Dennis G. Zill and Michael R. Cullen
59X_errataSecondPrint.qxd /7/7 9:9 AM Page Second Printing Errata for Advanced Engineering Mathematics, by Dennis G. Zill and Michael R. Cullen (Yellow highlighting indicates corrected material) Page 7
More informationPrelim Examination 2010 / 2011 (Assessing Units 1 & 2) MATHEMATICS. Advanced Higher Grade. Time allowed - 2 hours
Prelim Examination 00 / 0 (Assessing Units & ) MATHEMATICS Advanced Higher Grade Time allowed - hours Read Carefully. Calculators may be used in this paper.. Candidates should answer all questions. Full
More informationChapter 6: The Definite Integral
Name: Date: Period: AP Calc AB Mr. Mellina Chapter 6: The Definite Integral v v Sections: v 6.1 Estimating with Finite Sums v 6.5 Trapezoidal Rule v 6.2 Definite Integrals 6.3 Definite Integrals and Antiderivatives
More informationTangent Lines and Derivatives
The Derivative and the Slope of a Graph Tangent Lines and Derivatives Recall that the slope of a line is sometimes referred to as a rate of change. In particular, we are referencing the rate at which the
More information8.1 Sequences. Example: A sequence is a function f(n) whose domain is a subset of the integers. Notation: *Note: n = 0 vs. n = 1.
8. Sequences Example: A sequence is a function f(n) whose domain is a subset of the integers. Notation: *Note: n = 0 vs. n = Examples: 6. Find a formula for the general term a n of the sequence, assuming
More informationSOLVING EQUATIONS OF ONE VARIABLE
1 SOLVING EQUATIONS OF ONE VARIABLE ELM1222 Numerical Analysis Some of the contents are adopted from Laurene V. Fausett, Applied Numerical Analysis using MATLAB. Prentice Hall Inc., 1999 2 Today s lecture
More information