Since single(224 + 1) is exactly halfway between the two consecutive machine numbers 224 and 224 + 2, MATLAB rounds to the number with a final zero-bit in f ,
Previous PDF | Next PDF |
[PDF] MATH 2P20 NUMERICAL ANALYSIS I Lecture Notes
3 fit a simple curve (linear, quadratic) to empirical (not so accurate) data The curve be 'as ultimately, all numerical computation has to be reduced to these) 2 they are Let us do an example which was in the last year's exam Example: We
[PDF] BSc PCM _Mathematics_ 3rd Year 2019-20 - DBGI
TOTAL L T P CT TA TOTAL 1 M-301 Linear Algebra and Linear Programming 3 1 0 65 65 2 M-302 Analysis 3 1 0 65 65 3 M-303 Numerical Analysis
[PDF] BSC (H) III MATHEMATICS III-2 NUMERICAL METHODS AND
Write your Roll No on the top immediately on receipt of this question paper 2 All the six questions are compulsory 3 Attempt any two parts from each question
[PDF] III BA, BSc Mathematics Paper IV - Acharya Nagarjuna University
(Syllabus for the academic years 2010-2011 and onwards) UNIT - I 20 Hours Finite Differences and Numerical Analysis by H C Saxena, S Chand and Company, New Delhi 3 1 correct to three decimal places, using iteration method 13
[PDF] Numerical Methods - Department of Mathematics, HKUST
Since single(224 + 1) is exactly halfway between the two consecutive machine numbers 224 and 224 + 2, MATLAB rounds to the number with a final zero-bit in f ,
[PDF] Numerical Analysis (Second Edition) - IKIU
of Sciences, produced a total of four mathematical papers within 3 years (1770– 1772) Though written by a novice to mathematics, they are not without interest
[PDF] B Sc Third Year (Mathematics) Syllabus CBCS Pattern - srtmun
Detailed Structure of B Sc Mathematics (Faculty of Science) Syllabus under CBCS CCM-3 Section C 5 Paper –VIII Ordinary Differential Equations 40 10 50 Text Book: S C Malik and Savita Arora, “Mathematical Analysis”, New Edge
[PDF] Bsc part 1 math book - Squarespace
22 oct 2020 · applications of Numerical Analysis B Sc Mathematics: Subject books B Sc Books & Notes For All Semesters PDF - 1st, 2nd, 3rd Year
[PDF] Bsc mathematics books pdf - Squarespace
Evaluation Integral Numerical Analysis Direct and iterational method Numerical 2020 B Sc Books and Notes PDF for All Periods – 1st, 2nd, 3rd Year
[PDF] BSc (Second Year)(Fourth Semester)Mathematics) Paper No MAT
B Sc (Second Year)(Fourth Semester)Mathematics) Paper No MAT – 401: ( Numerical Analysis) Marks: (30 + 20) 1 Differences, Operators, Interpolation with
[PDF] numerical analysis pdf download
[PDF] numerical analysis pdf for computer science
[PDF] numerical analysis pdf s.s sastry
[PDF] numerical analysis pdf sauer
[PDF] numerical analysis pdf solutions
[PDF] numerical analysis questions and answers pdf
[PDF] numerical mathematical analysis pdf
[PDF] numerical methods for computer science pdf
[PDF] numerical methods for engineering and science by saumyen guha pdf
[PDF] numerical methods for scientific and engineering computation 4th edition pdf
[PDF] numerical methods for solving system of nonlinear equations
[PDF] numerical methods in civil engineering book pdf
[PDF] numerical methods journal pdf
[PDF] numerical methods practical applications
Numerical Methods
Jeffrey R. Chasnov
Adapted for:
Numerical Methods for EngineersClick to view a promotional video The Hong Kong University of Science and TechnologyDepartment 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 atDifferential Equations for Engineers
If your interests are matrices and elementary linear algebra, tryMatrix Algebra for Engineers
If you want to learn vector calculus (also known as multivariable calculus, or calcu- lus three), you can sign up forVector Calculus for Engineers
And if your interest is numerical methods, have a go atNumerical Methods for Engineers
JeffreyR. Chasnov
Hong Kong
February 2021
iiiContents
1 IEEE Arithmetic
11.1 Definitions
11.2 Numbers with a decimal or binary point
11.3 Examples of binary numbers
11.4 Hex numbers
11.5 4-bit unsigned integers as hex numbers
11.6 IEEE single precision format:
21.7 Special numbers
21.8 Examples of computer numbers
31.9 Inexact numbers
31.9.1 Find smallest positive integer that is not exact in single precision
41.10 Machine epsilon
41.11 IEEE double precision format
51.12 Roundoff error example
52 Root Finding
72.1 Bisection Method
72.2 Newton"s Method
72.3 Secant Method
72.3.1 Estimatep2=1.41421356 using Newton"s Method. . . . . . . 8
2.3.2 Example of fractals using Newton"s Method
82.4 Order of convergence
92.4.1 Newton"s Method
92.4.2 Secant Method
103 Systems of equations
133.1 Gaussian Elimination
133.2LUdecomposition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3 Partial pivoting
163.4 Operation counts
183.5 System of nonlinear equations
204 Least-squares approximation
234.1 Fitting a straight line
234.2 Fitting to a linear combination of functions
245 Interpolation
275.1 Polynomial interpolation
275.1.1 Vandermonde polynomial
275.1.2 Lagrange polynomial
285.1.3 Newton polynomial
285.2 Piecewise linear interpolation
295.3 Cubic spline interpolation
305.4 Multidimensional interpolation
33v
CONTENTS
6 Integration
356.1 Elementary formulas
356.1.1 Midpoint rule
356.1.2 Trapezoidal rule
366.1.3 Simpson"s rule
366.2 Composite rules
366.2.1 Trapezoidal rule
376.2.2 Simpson"s rule
376.3 Local versus global error
386.4 Adaptive integration
397 Ordinary differential equations
417.1 Examples of analytical solutions
417.1.1 Initial value problem
417.1.2 Boundary value problems
427.1.3 Eigenvalue problem
437.2 Numerical methods: initial value problem
437.2.1 Euler method
447.2.2 Modified Euler method
447.2.3 Second-order Runge-Kutta methods
457.2.4 Higher-order Runge-Kutta methods
467.2.5 Adaptive Runge-Kutta Methods
477.2.6 System of differential equations
477.3 Numerical methods: boundary value problem
487.3.1 Finite difference method
487.3.2 Shooting method
507.4 Numerical methods: eigenvalue problem
517.4.1 Finite difference method
517.4.2 Shooting method
53vi CONTENTS
Chapter 1
IEEE Arithmetic
1.1Definitions
Bit = 0 or 1
Byte = 8 bits
Word = Reals: 4 bytes (single precision)
8 bytes (double precision)
= Integers: 1, 2, 4, or 8 byte signed1, 2, 4, or 8 byte unsigned
1.2Numbers with a decimal or binar ypoint
Decimal: 10
3102101100101102103104
Binary: 2
322212021222324
1.3Examples of binar ynumbers
Decimal Binary
1 1 2 10 3 11 4 1000.5 0.1
1.5 1.1
1.4Hex numbers
1.54-bit unsigned integers as hex numbers
Decimal Binary Hex
1 0001 1
2 0010 2
3 0011 3
10 1010 a
15 1111 f
11.6. IEEE SINGLE PRECISION FORMAT:
1.6IEEE single precision for mat:
s z}|{0e z}|{12345678f
z}|{9 31
# =(1)s2e1271.f where s = sign e = biased exponent p=e-127 = exponent1.f = significand (use binary point)
1.7Special 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=0Number Range: e = 1111 1111 = 2
8- 1 = 255 reserved
e = 0000 0000 = 0 reserved so, p = e - 127 is1 - 127p254-127
-126p127Smallest positive normal number
= 1.0000 0000 00002126 '1.21038 bin: 0000 0000 1000 0000 0000 0000 0000 0000 hex: 00800000MATLAB: 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: 7f7fffffMATLAB: realmax("single")
Zero bin: 0000 0000 0000 0000 0000 0000 0000 0000 hex: 00000000Subnormal numbers
Allow 1.f!0.f (in software)
Smallest positive number = 0.0000 0000 00012126 = 2232126'1.41045
2 CHAPTER 1. IEEE ARITHMETIC
1.8. EXAMPLES OF COMPUTER NUMBERS
1.8Examples 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 00002.0= (1)02(128127)1.0
bin: 0100 00000 1000 0000 0000 0000 0000 0000 hex: 4000 00001/2= (1)02(126127)1.0
bin: 0011 1111 0000 0000 0000 0000 0000 0000 hex: 3f00 0000 1.9Inexact 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 as00111110101010101010101010101011
or in hex3eaaaaab.
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 thatN2=2231.11...1,
andN1=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 224+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 224and 224+2,
MATLAB rounds to the number with a final zero-bit in f, which is 2 24.1.10