, -,."-~,.,,.._..Numerical Analysis: Midterm Exam. SoL.,---~~-,

Similar documents
CE 206: Engineering Computation Sessional. System of Linear Equations

Chapter 8 Gauss Elimination. Gab-Byung Chae

Gauss Elimination. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

~,. :'lr. H ~ j. l' ", ...,~l. 0 '" ~ bl '!; 1'1. :<! f'~.., I,," r: t,... r':l G. t r,. 1'1 [<, ."" f'" 1n. t.1 ~- n I'>' 1:1 , I. <1 ~'..

P a g e 5 1 of R e p o r t P B 4 / 0 9

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

OH BOY! Story. N a r r a t iv e a n d o bj e c t s th ea t e r Fo r a l l a g e s, fr o m th e a ge of 9

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES

I-1. rei. o & A ;l{ o v(l) o t. e 6rf, \o. afl. 6rt {'il l'i. S o S S. l"l. \o a S lrh S \ S s l'l {a ra \o r' tn $ ra S \ S SG{ $ao. \ S l"l. \ (?

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

176 5 t h Fl oo r. 337 P o ly me r Ma te ri al s

CS 323: Numerical Analysis and Computing

Jsee x dx = In Isec x + tanxl + C Jcsc x dx = - In I cscx + cotxl + C

AIMS Exercise Set # 1

L=/o U701 T. jcx3. 1L2,Z fr7. )vo. A (a) [20%) Find the steady-state temperature u(x). M,(Y 7( it) X(o) U ç (ock. Partial Differential Equations 3150

P a g e 3 6 of R e p o r t P B 4 / 0 9

Review of matrices. Let m, n IN. A rectangle of numbers written like A =

A L A BA M A L A W R E V IE W

Ğ ğ ğ Ğ ğ Öğ ç ğ ö öğ ğ ŞÇ ğ ğ

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

MA3232 Numerical Analysis Week 9. James Cooley (1926-)

Solution of Algebric & Transcendental Equations

Review. Example 1. Elementary matrices in action: (a) a b c. d e f = g h i. d e f = a b c. a b c. (b) d e f. d e f.

Lecture 44. Better and successive approximations x2, x3,, xn to the root are obtained from

Virtual University of Pakistan

Next topics: Solving systems of linear equations

Chapter 9: Gaussian Elimination

Years. Marketing without a plan is like navigating a maze; the solution is unclear.

Direct Methods for solving Linear Equation Systems

1 Number Systems and Errors 1

MATHEMATICAL METHODS INTERPOLATION

MAT 343 Laboratory 3 The LU factorization

Parts Manual. EPIC II Critical Care Bed REF 2031

UNIT - 2 Unit-02/Lecture-01

University of Portland School of Engineering ME Failure Analysis Assignment 7, Fall 20 I0

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

BACHELOR'S DEGREE PROGRAMME (BDP) Term-End Examination June, 2017

SOUTHWESTERN ELECTRIC POWER COMPANY SCHEDULE H-6.1b NUCLEAR UNIT OUTAGE DATA. For the Test Year Ended March 31, 2009

::::l<r/ L- 1-1>(=-ft\ii--r(~1J~:::: Fo. l. AG -=(0,.2,L}> M - &-c ==- < ) I) ~..-.::.1 ( \ I 0. /:rf!:,-t- f1c =- <I _,, -2...

SOLUTION SET. Chapter 8 LASER OSCILLATION ABOVE THRESHOLD "LASER FUNDAMENTALS" Second Edition

Math/Phys/Engr 428, Math 529/Phys 528 Numerical Methods - Summer Homework 3 Due: Tuesday, July 3, 2018

Executive Committee and Officers ( )

APPH 4200 Physics of Fluids

Linear Algebra. Solving Linear Systems. Copyright 2005, W.R. Winfrey

Numerical Analysis: Solutions of System of. Linear Equation. Natasha S. Sharma, PhD

Linear Algebraic Equations

Nonlinearity Root-finding Bisection Fixed Point Iteration Newton s Method Secant Method Conclusion. Nonlinear Systems

AMSC/CMSC 466 Problem set 3

Introduction to Applied Linear Algebra with MATLAB

MTH603 FAQ + Short Questions Answers.

Computational Methods

The solution of linear differential equations in Chebyshev series

Linear Algebraic Equations

I;;"" I _ t. . - I...AJ_ ~I 11 \_-., I. LIfI.l..(!;O '{. ~- --~--- _.L...,.._ J 5" i. I! I \ 1/ \. L, :,_. RAmE ABSTRACT

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD

Software Process Models there are many process model s in th e li t e ra t u re, s om e a r e prescriptions and some are descriptions you need to mode

F l a s h-b a s e d S S D s i n E n t e r p r i s e F l a s h-b a s e d S S D s ( S o-s ltiad t e D r i v e s ) a r e b e c o m i n g a n a t t r a c

MAC 1147 Final Exam Review

5. Hand in the entire exam booklet and your computer score sheet.

The iteration formula for to find the root of the equation

Numerical Analysis MTH603

Tausend Und Eine Nacht

Mathematical Methods for Numerical Analysis and Optimization

BACHELOR'S DEGREE PROGRAMME (BDP) Term-End Examination December, 2012 ELECTIVE COURSE : MATHEMATICS MTE-10 : NUMERICAL ANALYSIS

Review Questions REVIEW QUESTIONS 71

Preface. 2 Linear Equations and Eigenvalue Problem 22

Kr7. wd /J-t- To pick up your graded exam from a box outside 5100A Pacific Hall sign here:

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

EE5120 Linear Algebra: Tutorial 1, July-Dec Solve the following sets of linear equations using Gaussian elimination (a)

this chapter, we introduce some of the most basic techniques for proving inequalities. Naturally, we have two ways to compare two quantities:

Linear System of Equations

(tnaiaun uaejna) o il?smitfl?^ni7wwuiinuvitgviisyiititvi2a-a a imaviitjivi5a^ qw^ww^i fiaa!i-j?s'u'uil?g'ijimqwuwiijami.wti. a nmj 1,965,333.

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

THIS PAGE DECLASSIFIED IAW E

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

or - CHAPTER 7 Applications of Integration Section 7.1 Area of a Region Between Two Curves 1. A= ~2[0- (x :2-6x)] dr=-~2(x 2-6x) dr

Simultaneous Linear Equations

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

Numerical Methods in Matrix Computations

Numerical methods, midterm test I (2018/19 autumn, group A) Solutions

C. A laboratory course helps the students realize the distinction.

,\ I. . <- c}. " C:-)' ) I- p od--- -;::: 'J.--- d, cl cr -- I. ( I) Cl c,\. c. 1\'0\ ~ '~O'-_. e ~.\~\S

Fixed Points and Contractive Transformations. Ron Goldman Department of Computer Science Rice University

Integrated II: Unit 2 Study Guide 2. Find the value of s. (s - 2) 2 = 200. ~ :-!:[Uost. ~-~::~~n. '!JJori. s: ~ &:Ll()J~

i of 6. PERFORMING ORG. REPORT NUMBER Approved for public Dtatibuft Unlimited

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4

Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in. NUMERICAL ANALYSIS Spring 2015

COURSE CONTRACT Course Name

Math 22AL Lab #4. 1 Objectives. 2 Header. 0.1 Notes

DEN: Linear algebra numerical view (GEM: Gauss elimination method for reducing a full rank matrix to upper-triangular

Numerical Methods - Numerical Linear Algebra

Solving Linear Systems 1 Review We start with a review of vectors and matrices and matrix-matrix and matrixvector multiplication and other matrix and

Introduction to Numerical Analysis

Homework and Computer Problems for Math*2130 (W17).

The following steps will help you to record your work and save and submit it successfully.

Linear Algebra Math 221

Numerical methods. Examples with solution

T h e C S E T I P r o j e c t

Roundoff Error. Monday, August 29, 11

Transcription:

, -,."-,.,,.._..:. SoL.,----, StudentID: Name: JE7]7} 1li :?df- 15: 5:"T-{:l 37.}Cil}}7.] 7-1] {}-cr}a].2.. %:d- 1i:!-7-1] lia]}7.] '{,},c: 7clf- 7-1j{!-7]9l.Jl-if 7] 'o ).}- - Q. z!-?ir}o'j o'j @ g. 1. The following is the explanation of the important concepts in numerical analysis and scientific computing. Fill the blank. (20pt) (a) I (a) I is the error made by cutting off an infinite sum and approximating it by a finite sum.,...,. ".. '{6)' I '(by -. lis the difference between the calculated approximation' ofa number and" its'.' exact mathematical value. I True.- ob:d\..tle (0.) Jiu"Cb:IloV\(\D _Cb) R"l> P7) el/vdr 2. For a given (30pt) 0-) (a) Use three-digit rounding arithmetic (significant numbers) to evaluate f(o.l). (b) Find the true absolute error Et and the true relative error Et. What type of error is it? -1- v: -'(. t\ e e-e f(l') \vvte (,\6t;>i'1 - oofo - ;:),60.33-' - J\S\Jl L!lro- Oo 0.-:..., 20S:-rC' \ :2,0) '-.' Yo\J,\.J. ob- e W1)'(' - -------------, Oct. 27, 2014 1 Chibum Lee

3. The following is about the equation f(x) = e" - x2 + 3x. (50pt) (a) Show that the equation f(x) = 2 has at least one real root in the interval [0, 1J. (Note: You need to specify the theorem!) (b) Write the approximation formula of bisection method (X,. =...) and perform 3 steps with. ".,,. ""...,thi interval andcompute the approximated solution. Find the approximated relative en;9! Ep.,_., for each steps. (c) Write the approximation formula of false position method (X,. =...) and repeat above procedure. ek- -y;..)..-t- 3:>'f.. = ;).. \..- Y' ' ) ei- _r:-t-:l 'f--'j...-=-- a 4 (;: -r I @U-) f g(o)= eo- O:l.T O'-.:l-\(C? Cj(\)= e l - (+ 3-:L!:: e :;:l.llg3)o 3 3 8(")==- e'f:._ 1-'l.+3'1'.-::L IS CCJ'\I1\1-lnUO\.A..s s 'f\lr'\c:'\'\ov\ GI"I CO I 11 1.1,:\--e.J:ct\QA ({k", &(7')--0. o.$ 0+ \t._q\\ Lo.\v. J <;;:(J\v'\ O-Y) Co J II lmc:tc\ \JO\v-e. "'" 11 I' \ {; di. 0(\ E2 \,,\ Co-; 6] X.f :s 0. -\fo<\ t V),,\cWS u V\ IW\ r\u, '0r d-cy-) E.o.- C-,.,o I, o,31.- '.,. I,,' \ \ 0.2.. 4 t-6.o> r.::.(60 y""....6 t 4 i...::l.. (\ g) O.<11Q4-0.333 2>3>" t"' -I!a - flmoi/i i\r 1'", f\r. R("f:r).- r 0 1 o. 0.043\.- -l.. 0 \). c,..2.'51 {\ o,oc(..l.. <f}:073y. Oct. 27, 2014.2 6 (l,.j.'s'?21 I/O.ir7 6,0002 /6.11>4b Chibum Lee (t; -

4. To solve f(x) = 7f + cos - x, it is converted into the fixed-point form x = 7f + cos. (30pt) (a) Prove it has a unique solution on 0 < x < 27f. (b) Perform 4 steps of fixed point iteration with Xo each steps. =. Plot the graph and denote the points of (0) 8()-="IT+jC acf-'j' _, :::. 'S\\A =) S C\t f\jit{ga of \ tbr Oq<:.J.-1) 4 (,8C1"}<" "Q ftej-pav\1- t\ sd\. (b) y:i8f)..::3..4cts-) y;.=-(\) -::: 2..c:Jt;37 3- (\.1 &() =- 3./ - 4. f)4 8()-=- 3.1361 5,,,... \.::. --r;.l.. 1\ I\..s0 (0)) C28: 15. «j>vf<n'f1 'f \t\ttlt\ -fcuj'\\tl 7\717 -\ <. (7')< o ()),gl vd..'?;i4-?l'b..", ; ""-. <-. Oct. 27, 2014 3 Chibum Lee

;" \ ;,. '. r _,. "".. 5. Find the root of f(x) = -x 3 - cosx. (60pt) (a) Write the iteration formula of Newton-Raphson method (Xi+1 =...) (b) perform 3 steps to find the estimate with Xo = -1. If it can be solved find the approximated relative error Ea. Otherwise, explain why it cannot be solved. (c) repeat (b) with Xo = 0 (b) 3." '0 -tsr -------- 3."tL._$\ V'\'f /0 l(a 0k 0-.,.,.,.).. ( -().3>. /3>. C;-13 1- I: S',- O.86) t 6'cr 22- ( )' 2> - O.8 S- O.0).43,/, s I '" " '..,- Oct. 27, 2014 ----------- Chibum Lee

6. Answer the questions about the following systems. (90pt) (a) Express the system in the form ofax = b. Use Gaussian elimination with backward substitution to solve x. (Do not use pivoting.) 4XI - X2 + X3 = 9 2XI + 5X2 + 2X3 = 7 Xl + 2X2 + 4X3 = - 3 (b) Factor the above matrix A into the LU decomposition such that A = LU where each diagonal element of L is 1. (Hint: use Gaussian elimination procedure above.) (c) Use the Gauss-Seidel iterative technique to find approximate solutions after 3 steps of iteration Ilx(3) - x(2) 1100 starting with Xo = [0 a alto Find the approximated relative error Ea = -"--..,.,.---;=-c:-----"-- IIx(3) 1100 where oo-norm is defined by Ilxlloo := max (IXII,, Ixnl). (<>.) 4'01-(\.J.-+'J<3=9 --\D.it,-\- S + 'ij.=:j.-@ ( +-L +4t:i=-j. -: C\ {s\: CoL\VI o 41\, - 'i.l.-tf\:=:9. 1-.). 1 3:=-- -Gf I''s'..2-\ I 4-- }"*'4"!<l:"; - 4 -Q) ----------------0D) r o.t ca\u\i\w\ c\pe<:l'" (i) = 0.1\ 4 --'<if' (\ - o!.\ Cl}@/,(;\\, \ "f.::::, [; F. -,). Oct. 27, 2014 5

\:: 9::L ::: 1 u" - 4.i,3,.\ =- (\3 \ ::: L 0\\ 4- f::c};:l x: 9;4 3 "/..::1 \ 0 0 j L.; \ 0-4- :::L \ -3 \ / \ tv\ \).'w\r\c 0 a [ 4 \ L:: o. 0 U:: 0 s \' O,.:lS' o.c:1\ o \ r 0 \ (.t t.--.2... 6..--..2..2.- - (C) Gc>-S.- S:-e'\JdJ \(\.tnl. -I,-\ j =-10 9 +f\ - 01. (\, =- t "f. 4-0 1\ I. 0!l 0 '1.- :y,\ --"J-0) l- -r< 4 5 9 ::2.2.)'.j) j ::: '0-1, -2>.-- i -= OS":' (10) 4- -/ 3., I6'1-.:2- :a...s- - 'r6' 0'r s-) /11-16)6 - (r/2cy -.- L\49 6q t;/:kj ;< ) j4-1 - 1.)3 0.91'8) /<.= - o.q1()4 160 /2300 - -.)..t 3 3 (.).$'0 -- l Cjf)oo.- i. 1719, I or (F) 3D

== o. D6 :J

7. The right MATLAB code implements the Gauss elimination algorithm. Complete the box with an appropriate expression. (Hint: Check the previous problem. Use the MAT- LAB expression!) (t) function x = Gauss(A,b) % Gauss: Gauss el imination % x = Gauss(A,b): Gauss el imination without pivoting. Im.nl = size(a); if m-=n, error('matrix A must be square'); end nb = n+l. Aug = [A bl ; for k = 1 :n-1 % forward el imination for i = k+1 :n facto r = p, -------.." ; Aug(i,k:nb) = Aug(i,k:nb)-factor*Aug(k,k:nb); end,., "....,.--. end x = zeros(n, 1); x(n) = Aug(n,nb)!Aug(n,n); % back substitution for i = n-1 :-1:1 xci) = (Aug(i,nb)-Aug(i, i+1 :n)*x(i+l :n»!aug(i, i); end 'I,. : d-o Oct. 27, 2014 6 Chibum Lee