[PDF] numerical-methods.pdf Consider solving the quadratic equation





Previous PDF Next PDF



Numerical Analysis 9th ed.

Page 1. Page 2. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24 PDF files. As new software is developed the programs ...



mth 213 course title: numerical analysis 1

The Jaccobi's iteration methods and the Gauss-Seidel iteration method. Page 12. MTH 213. NUMERICAL ANALYSIS 1. 162. Unit 4. Eigen-Values and Eigen-Vectors. This 



Numerical Analysis

Page 1. Numerical Analysis. Page 2. Page 3. Numerical Analysis. L. Ridgway Scott. PRINCETON UNIVERSITY PRESS. PRINCETON AND OXFORD. Page 4. Copyright c 2011 by 



Introduction to Numerical Analysis - S. Baskar

1. Mathematical Preliminaries: Continuity of a Function and Intermediate Value Theorem; Mean Value. Theorem for Differentiation and Integration; Taylor's 



An Introduction to Numerical Methods and Analysis

Page 1. Page 2. Page 3. AN INTRODUCTION TO. NUMERICAL METHODS. AND ANALYSIS. Page pdf. 13. Goldstine Herman H.





MATH 2P20 NUMERICAL ANALYSIS I Lecture Notes

1 PREVIEW. 5. Fitting polynomials to: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. Discrete data .



AN INTRODUCTION TO NUMERICAL ANALYSIS Second Edition

Mar 2 2012 Page 1. AN INTRODUCTION TO. NUMERICAL ANALYSIS. Second Edition. Kendall E. Atkinson. University of Iowa. • WILEY. John Wiley & Sons. Page 2. ' ' ...



Numerical analysis of thermal damage and oxygen distribution in

Feb 5 2022 Abstract. A numerical analysis of the thermal damage process that proceeds in biological tissue during laser irradiation is presented.



Numerical Analysis 1 Lecture notes

Numerical Analysis 1. Lecture notes. Dmitriy Leykekhman. 0 Introduction. This lecture notes are designed for the MATH 5510 which is the first graduate 



MATH 2P20 NUMERICAL ANALYSIS I Lecture Notes

1. Polynomials are easy to evaluate (we just add/subtract and multiply - and The formulas for numerical differentiation can also be used (this is in ...



Numerical Analysis 9th ed.

1 Mathematical Preliminaries and Error Analysis 1. 1.1 Review of Calculus 2 These slides created using the Beamer package of LaTeX



Numerical Analysis

Chapter 1. Numerical Algorithms. 1. 1.1 Finding roots. 2. 1.2 Analyzing Heron's algorithm. 5. 1.3 Where to start. 6. 1.4 An unstable algorithm.



Numerical Analysis (Second Edition)

The book is designed for use in a graduate program in Numerical Analysis that P3.1 Selected Textbooks on Numerical Analysis ...



An Introduction to Numerical Methods and Analysis

1. Numerical analysis. I. Title. QA297.E568 2013. 518—dc23. 2013013979. Printed in the United States of Stanford. edu/ godf rey/vonNeumann/vnedvac. pdf.



Introduction to Numerical Analysis - S. Baskar

Numerical Analysis. Course Syllabus. 1. Mathematical Preliminaries: Continuity of a Function and Intermediate Value Theorem; Mean Value.



Numerical Analysis II – Lecture Notes

12 ????? 2018 1. Floating-point arithmetic (How do we represent real numbers on a computer?) 2. Polynomial interpolation(How do we represent mathematical ...



NUMERICAL ANALYSIS 1. General Introduction. Numerical analysis

1. General Introduction. Numerical analysis is the area of mathematics and computer science that creates analyzes





Numerical Analysis 1 Lecture notes - University of Connecticut

Numerical analysis is the study of algorithms for the problem of continuous mathematics We strongly encourage to read this essay whoever is interested in the subject it is only 5 pages long This lecture notes start with interpolation which is not orthodox but in my opinion it is an interesting topic that



SBaskar - IIT Bombay

1 1 What is Numerical Analysis? This is an introductory course of numerical analysis which comprises the design analysis and implementation of constructive methods and algorithms for the solution of mathematical problems Numerical analysis has vast applications both in mathematics and in modern science and technology



numerical analysis 1 - University of Pennsylvania

numerical analysis 1 1 1 Di?erential equations In this chapter we are going to study di?erential equations with particular emphasis on how to solve them with computers We assume that the reader has previously met di?erential equations and so we’re going to review the most basic facts about them rather quickly



Lectures on Numerical Analysis - University of Pennsylvania

Chapter 1 Di erential and Di erence Equations 1 1 Introduction In this chapter we are going to studydi erential equations with particular emphasis on how to solve them with computers We assume that the reader has previously met di erential equations so we’re going to review the most basic facts about them rather quickly



Numerical Analysis - Department of Computer Science

Chapter 1 Numerical Algorithms 1 1 1 Finding roots 2 1 2 Analyzing Heron’s algorithm 5 1 3 Where to start 6 1 4 An unstable algorithm 8 1 5 General roots: e?ects of ?oating-point 9 1 6 Exercises 11 1 7 Solutions 13 Chapter 2 Nonlinear Equations 15 2 1 Fixed-point iteration 16 2 2 Particular methods 20 2 3 Complex roots 25 2 4 Error



Searches related to numerical analysis 1 pdf filetype:pdf

Numerical analysis is a branch of Mathematics that deals with devising e?cient methods for obtaining numerical solutions to di?cult Mathematical problems Most of the Mathematical problems that arise in science and engineering are very hard and sometime impossible to solve exactly



[PDF] Numerical Analysis 9th ed

graduate course in Numerical Linear Algebra for students who have not previously studied Numerical Analysis This could be done by covering Chapters 1 6 



[PDF] Numerical Analysis 1 Lecture notes - UConn Math

This lecture notes are designed for the MATH 5510 which is the first graduate course in numerical analysis at Univer- sity of Connecticut



[PDF] Numerical Analysis - Full-Time Faculty

“ by faith and faith alone embrace believing where we cannot prove” from In Memoriam by Alfred Lord Ten- nyson a memorial to Arthur Hallum Numerical 



[PDF] Introduction to Numerical Analysis - Math-IITB

1 K E Atkinson An Introduction to Numerical Analysis (2nd edition) Wiley-India 1989 1 Attendance in lectures as well as tutorials is compulsory



[PDF] An Introduction to Numerical Methods and Analysis

1 Numerical analysis I Title QA297 E568 2013 518—dc23 2013013979 Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 



[PDF] MATH 2P20 NUMERICAL ANALYSIS I Lecture Notes

There is a number of important topics which we will not have time to discuss in this brief course namely: 1 Solving ordinary differential equations 



[PDF] Numerical Analysis (Second Edition) - IKIU

The book is designed for use in a graduate program in Numerical Analysis that is structured so as to include a basic introductory course and subsequent more



[PDF] Numerical analysis

1 General Introduction Numerical analysis is the area of mathematics and computer science that creates analyzes and implements algorithms for solving nu 



[PDF] AN INTRODUCTION TO NUMERICAL ANALYSIS Second Edition

2 mar 2012 · This introduction to numerical analysis was written for students in mathematics the physical sciences and engineering 



[PDF] Numerical Analysispdf

Numerical aspects of Direct Solution of Linear Equations 1 Pivoting: A key feature in the numerical algorithm with Gauss (or Gauss-Jordan) Elimination is 

What is numerical analysis?

    Introduction Numerical analysis is a branch of Mathematics that deals with devising e?cient methods for obtaining numerical solutions to di?cult Mathematical problems. Most of the Mathematical problems that arise in science and engineering are very hard and sometime impossible to solve exactly.

What are the three parts of numerical analysis?

    Numerical analysis include three parts. The ?rst part of the subject is about the development of a method to a problem. The second part deals with the analysis of the method, which includes the error analysis and the e?ciency analysis.

Are there any good books on numerical analysis?

    Today there are many good books on numerical analysis at the graduate level, including general texts [47, 134] as well as more specialized texts. We reference many of the latter at the ends of chapters where we suggest fur- ther reading in particular areas.

Should numerical analysis and computational analysis be intertwined?

    Ideally, both should be intertwined, as numerical analysis could well be called computa- tional analysis because it is the analysis of computational algorithms involv- ing realnumbers. We present many computational algorithmsand encourage computational exploration.

Numerical Methods

Jeffrey R. Chasnov

Adapted for:

Numerical Methods for EngineersClick to view a promotional video The Hong Kong University of Science and Technology

Department of Mathematics

Clear Water Bay, Kowloon

Hong KongCopyright

c○2012 by Jeffrey Robert Chasnov This work is licensed under the Creative Commons Attribution 3.0 Hong Kong License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/hk/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

Preface

What follows were my lecture notes for Math 3311:Introduction to Numerical Meth- ods, taught at the Hong Kong University of Science and Technology. Math 3311, with two lecture hours per week, was primarily for non-mathematics majors and was required by several engineering departments. I also have some free online courses on Coursera. A lot of time and effort has gone into their production, and the video lectures for these courses are of high quality. You can click on the links below to explore these courses. If you want to learn differential equations, have a look at

Differential Equations for Engineers

If your interests are matrices and elementary linear algebra, try

Matrix Algebra for Engineers

If you want to learn vector calculus (also known as multivariable calculus, or calcu- lus three), you can sign up for

Vector Calculus for Engineers

And if your interest is numerical methods, have a go at

Numerical Methods for Engineers

JeffreyR. Chasnov

Hong Kong

February 2021

iii

Contents

1 IEEE Arithmetic

1

1.1 Definitions

1

1.2 Numbers with a decimal or binary point

1

1.3 Examples of binary numbers

1

1.4 Hex numbers

1

1.5 4-bit unsigned integers as hex numbers

1

1.6 IEEE single precision format:

2

1.7 Special numbers

2

1.8 Examples of computer numbers

3

1.9 Inexact numbers

3

1.9.1 Find smallest positive integer that is not exact in single precision

4

1.10 Machine epsilon

4

1.11 IEEE double precision format

5

1.12 Roundoff error example

5

2 Root Finding

7

2.1 Bisection Method

7

2.2 Newton"s Method

7

2.3 Secant Method

7

2.3.1 Estimatep2=1.41421356 using Newton"s Method. . . . . . . 8

2.3.2 Example of fractals using Newton"s Method

8

2.4 Order of convergence

9

2.4.1 Newton"s Method

9

2.4.2 Secant Method

10

3 Systems of equations

13

3.1 Gaussian Elimination

13

3.2LUdecomposition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.3 Partial pivoting

16

3.4 Operation counts

18

3.5 System of nonlinear equations

20

4 Least-squares approximation

23

4.1 Fitting a straight line

23

4.2 Fitting to a linear combination of functions

24

5 Interpolation

27

5.1 Polynomial interpolation

27

5.1.1 Vandermonde polynomial

27

5.1.2 Lagrange polynomial

28

5.1.3 Newton polynomial

28

5.2 Piecewise linear interpolation

29

5.3 Cubic spline interpolation

30

5.4 Multidimensional interpolation

33
v

CONTENTS

6 Integration

35

6.1 Elementary formulas

35

6.1.1 Midpoint rule

35

6.1.2 Trapezoidal rule

36

6.1.3 Simpson"s rule

36

6.2 Composite rules

36

6.2.1 Trapezoidal rule

37

6.2.2 Simpson"s rule

37

6.3 Local versus global error

38

6.4 Adaptive integration

39

7 Ordinary differential equations

41

7.1 Examples of analytical solutions

41

7.1.1 Initial value problem

41

7.1.2 Boundary value problems

42

7.1.3 Eigenvalue problem

43

7.2 Numerical methods: initial value problem

43

7.2.1 Euler method

44

7.2.2 Modified Euler method

44

7.2.3 Second-order Runge-Kutta methods

45

7.2.4 Higher-order Runge-Kutta methods

46

7.2.5 Adaptive Runge-Kutta Methods

47

7.2.6 System of differential equations

47

7.3 Numerical methods: boundary value problem

48

7.3.1 Finite difference method

48

7.3.2 Shooting method

50

7.4 Numerical methods: eigenvalue problem

51

7.4.1 Finite difference method

51

7.4.2 Shooting method

53
vi CONTENTS

Chapter 1

IEEE Arithmetic

1.1

Definitions

Bit = 0 or 1

Byte = 8 bits

Word = Reals: 4 bytes (single precision)

8 bytes (double precision)

= Integers: 1, 2, 4, or 8 byte signed

1, 2, 4, or 8 byte unsigned

1.2

Numbers with a decimal or binar ypoint

Decimal: 10

3102101100101102103104

Binary: 2

322212021222324

1.3

Examples of binar ynumbers

Decimal Binary

1 1 2 10 3 11 4 100

0.5 0.1

1.5 1.1

1.4

Hex numbers

1.5

4-bit unsigned integers as hex numbers

Decimal Binary Hex

1 0001 1

2 0010 2

3 0011 3

10 1010 a

15 1111 f

1

1.6. IEEE SINGLE PRECISION FORMAT:

1.6

IEEE single precision for mat:

s z}|{0e z}|{

12345678f

z}|{

9 31

# =(1)s2e1271.f where s = sign e = biased exponent p=e-127 = exponent

1.f = significand (use binary point)

1.7

Special numbers

Smallest exponent: e = 0000 0000, represents denormal numbers (1.f!0.f) Largest exponent: e = 1111 1111, represents¥, if f = 0 e = 1111 1111, represents NaN, if f6=0

Number Range: e = 1111 1111 = 2

8- 1 = 255 reserved

e = 0000 0000 = 0 reserved so, p = e - 127 is

1 - 127p254-127

-126p127

Smallest positive normal number

= 1.0000 0000 00002126 '1.21038 bin: 0000 0000 1000 0000 0000 0000 0000 0000 hex: 00800000

MATLAB: realmin("single")

Largest positive number

= 1.1111 1111 11112127 =(1+ (1223))2127 '2128'3.41038 bin: 0111 1111 0111 1111 1111 1111 1111 1111 hex: 7f7fffff

MATLAB: realmax("single")

Zero bin: 0000 0000 0000 0000 0000 0000 0000 0000 hex: 00000000

Subnormal numbers

Allow 1.f!0.f (in software)

Smallest positive number = 0.0000 0000 00012126 = 2

232126'1.41045

2 CHAPTER 1. IEEE ARITHMETIC

1.8. EXAMPLES OF COMPUTER NUMBERS

1.8

Examples of computer numbers

What is 1.0, 2.0 & 1/2 in hex ?

1.0= (1)02(127127)1.0

bin: 0011 1111 1000 0000 0000 0000 0000 0000 hex: 3f80 0000

2.0= (1)02(128127)1.0

bin: 0100 00000 1000 0000 0000 0000 0000 0000 hex: 4000 0000

1/2= (1)02(126127)1.0

bin: 0011 1111 0000 0000 0000 0000 0000 0000 hex: 3f00 0000 1.9

Inexact numbers

Example:

13 = (1)014 (1+13 so thatp=e127=2 ande=125=1283, or in binary,e=01111101. How is f=1/3 represented in binary? To compute binary number, multiply successively by 2 as follows:

0.333... 0.

0.666... 0.0

1.333... 0.01

0.666... 0.010

1.333... 0.0101

etc. so that 1/3 exactly in binary is 0.010101.... With only 23 bits to representf, the number is inexact and we have f=01010101010101010101011, where we have rounded to the nearest binary number (here, rounded up). The machine number 1/3 is then represented as

00111110101010101010101010101011

or in hex

3eaaaaab.

CHAPTER 1. IEEE ARITHMETIC 3

1.10. MACHINE EPSILON

1.9.1 Find smallest positiv einteger that is not exact in single pre- cision LetNbe the smallest positive integer that is not exact. Now, I claim that

N2=2231.11...1,

and

N1=2241.00...0.

The integerNwould then require a one-bit in the 224position, which is not avail- able. Therefore, the smallest positive integer that is not exact is 2

24+1=16777217.

In MATLAB, single(2

24) has the same value as single(224+1). Since single(224+1)

is exactly halfway between the two consecutive machine numbers 2

24and 224+2,

MATLAB rounds to the number with a final zero-bit in f, which is 2 24.
1.10

Machine epsilon

Machine epsilon(emach)is the distance between 1 and the next largest number. If

0d x+y=x(1+y/x), if 0y/xFindemach

The number 1 in the IEEE format is written as

1=201.000...0,

with 23 0"s following the binary point. The number just larger than 1 has a 1 in the

23rd position after the decimal point. Therefore,

e mach=2231.192107. What is the distance between 1 and the number just smaller than 1? Here, the number just smaller than one can be written as 2

11.111...1=21(1+ (1223)) =1224

Therefore, this distance is 2

24=emach/2.

The spacing between numbers is uniform between powers of 2, with logarithmic spacing of the powers of 2. That is, the spacing of numbers between 1 and 2 is 2 23,
between 2 and 4 is 2

22, between 4 and 8 is 221, etc. This spacing changes for

denormal numbers, where the spacing is uniform all the way down to zero.

Find the machine number just greater than5

A rough estimate would be 5(1+emach) =5+5emach, but this is not exact. The exact answer can be found by writing

5=22(1+14

so that the next largest number is 2

2(1+14

+223) =5+221=5+4emach.

4 CHAPTER 1. IEEE ARITHMETIC

1.11. IEEE DOUBLE PRECISION FORMAT

1.11

IEEE double precision for mat

Most computations take place in double precision, where round-off error is re- duced, and all of the above calculations in single precision can be repeated for double precision. The format is sz}|{0e z}|{

1234567891011f

z}|{

12 63

# =(1)s2e10231.f where s = sign e = biased exponent p=e-1023 = exponent

1.f = significand (use binary point)

1.12

Roundof ferror example

Consider solving the quadratic equation

x

2+2bx1=0,

wherebis a parameter. The quadratic formula yields the two solutions x =bpb 2+1. Consider the solution withb>0 andx>0 (thex+solution) given by x=b+pb

2+1. (1.1)

Asb!¥,

x=b+pb 2+1 =b+bp1+1/b2 =b(p1+1/b21) b

1+12b21

12b. Now in double precision, realmin2.210308and we would likexto be accurate to this value before it goes to 0 via denormal numbers. Therefore,xshould be computed accurately tob1/(2realmin)210307. What happens if we compute ( 1.1 ) directly? Thenx=0 whenb2+1=b2, or 1+1/b2=1. That is

1/b2=emach/2, orb=p2/

pe mach108.

CHAPTER 1. IEEE ARITHMETIC 5

1.12. ROUNDOFF ERROR EXAMPLE

For a subroutine written to compute the solution of a quadratic for a general user, this is not good enough. The way for a software designer to solve this problem is to compute the solution forxas x=1b(1+p1+1/b2). In this form, if 1+1/b2=1, thenx=1/2bwhich is the correct asymptotic form.

6 CHAPTER 1. IEEE ARITHMETIC

Chapter 2

Root Finding

Solvef(x) =0 forx, when an explicit analytical solution is impossible. 2.1

Bisection Method

The bisection method is the easiest to numerically implement and almost always works. The main disadvantage is that convergence is slow. If the bisection method results in a computer program that runs too slow, then other faster methods may be chosen; otherwise it is a good choice of method. We want to construct a sequencex0,x1,x2,... that converges to the rootx=r that solvesf(x) =0. We choosex0andx1such thatx0