Docsity

Introduction-Numerical Analysis-Lecture Handouts, Lecture notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Numerical Analysis โ€“MTH603 VU
ยฉ Copyright Virtual University of Pakistan 1
Numerical Analysis
Course Contents
Solution of Non Linear Equations
Solution of Linear System of Equations
Approximation of Eigen Values
Interpolation and Polynomial Approximation
Numerical Differentiation
Numerical Integration
Numerical Solution of Ordinary Differential Equations
Introduction
We begin this chapter with some of the basic concept of representation of numbers on
computers and errors introduced during computation. Problem solving using computers and the
steps involved are also discussed in brief.
Number (s) System (s)
In our daily life, we use numbers based on the decimal system. In this system, we use ten
symbols 0, 1,โ€ฆ,9 and the number 10 is called the base of the system.
Thus, when a base N is given, we need N different symbols 0, 1, 2, โ€ฆ,(N โ€“ 1) to represent an
arbitrary number.
The number systems commonly used in computers are
Base, N Number
2 Binary
8 Octal
10 Decimal
16 Hexadecimal
An arbitrary real number, a can be written as
11 1
1101
mm m
mm
m
aaN a N aN a aN aN
โˆ’โˆ’โˆ’
โˆ’
โˆ’โˆ’
= + ++ ++ ++""
In binary system, it has the form,
11 1
1101
22 2 2 2
mm m
mm m
aa a a a a a
โˆ’
โˆ’โˆ’
โˆ’โˆ’โˆ’
=+ ++++ ++""
The decimal number 1729 is represented and calculated
3210
10
(1729) 1 10 7 10 2 10 9 10=ร— + ร— + ร— + ร—
While the decimal equivalent of binary number 10011001 is
01234567
10
12 02 02 12 12 02 02 12
11 1
18 16 128
(1.1953125)
โˆ’โˆ’โˆ’โˆ’ โˆ’โˆ’โˆ’
ร—+ร—+ร—+ร—+ร—+ร—+ร—+ร—
=+ + +
=
Electronic computers use binary system whose base is 2. The two symbols used in this system
are 0 and 1, which are called binary digits or simply bits.
The internal representation of any data within a computer is in binary form. However, we prefer
data input and output of numerical results in decimal system. Within the computer, the
arithmetic is carried out in binary form.
Conversion of decimal number 47 into its binary equivalent
Sol.
docsity.com
pf3

Partial preview of the text

Download Introduction-Numerical Analysis-Lecture Handouts and more Lecture notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Numerical Analysis

Course Contents

Solution of Non Linear Equations Solution of Linear System of Equations Approximation of Eigen Values Interpolation and Polynomial Approximation Numerical Differentiation Numerical Integration Numerical Solution of Ordinary Differential Equations

Introduction

We begin this chapter with some of the basic concept of representation of numbers on computers and errors introduced during computation. Problem solving using computers and the steps involved are also discussed in brief. Number (s) System (s) In our daily life, we use numbers based on the decimal system. In this system, we use ten symbols 0, 1,โ€ฆ,9 and the number 10 is called the base of the system. Thus, when a base N is given, we need N different symbols 0, 1, 2, โ€ฆ,( N โ€“ 1) to represent an arbitrary number. The number systems commonly used in computers are

Base, N Number 2 Binary 8 Octal 10 Decimal 16 Hexadecimal An arbitrary real number, a can be written as

1 1 1 1 1 0 1

m m m

a a Nm am N a N a a N a mN

โˆ’ โˆ’ โˆ’

In binary system, it has the form, 1 1 1 2 1 2 1 2 0 12 2 m m m a am am a a a am โˆ’ โˆ’ โˆ’ = + (^) โˆ’ + " + + + (^) โˆ’ + "+ โˆ’

The decimal number 1729 is represented and calculated 3 2 1 0 (1729) 10 = 1 10ร— + 7 ร— 10 + 2 ร— 10 + 9 ร— 10

While the decimal equivalent of binary number 10011001 is

0 1 2 3 4 5 6 7

10

ร— + ร— โˆ’^ + ร— โˆ’^ + ร— โˆ’^ + ร— โˆ’^ + ร— โˆ’^ + ร— โˆ’^ + ร— โˆ’

Electronic computers use binary system whose base is 2. The two symbols used in this system are 0 and 1, which are called binary digits or simply bits. The internal representation of any data within a computer is in binary form. However, we prefer data input and output of numerical results in decimal system. Within the computer, the arithmetic is carried out in binary form. Conversion of decimal number 47 into its binary equivalent Sol.

Binary equivalent of the decimal fraction 0. Sol. Product Integer 0.7625 x2 1.5250 1

0.5250 x2 1.0500 1

0.05 x2 0.1 0

0.1 x2 0.2 0

0.2 x2 0.4 0

0.4 x2 0.8 0

0.8 x2 1.6 1

0.6 x2 1.2 1

0.2 x2 0.4 0

(0.7625) 10 =(0.11....11(0011)) 2

Conversion (59) 10 into binary and then into octal.

Sol.

2 47 Remainder

2 23 1

2 11 1

2 5 1

2 2 1

2 1 0

0 1 Most significant bit