0% found this document useful (0 votes)
73 views8 pages

MTH308B Lecture1

This document discusses numerical methods and floating point representations in computers. It introduces: 1) Numerical methods are algorithms used to approximate functions, derivatives, integrals, and solutions to nonlinear equations when analytical solutions are not possible. 2) Numbers are stored in computers using floating point representation, which approximates real numbers using a sign, significand, and exponent. This leads to representation errors. 3) Floating point operations also incur rounding errors, so the result of a calculation on floating point numbers is an approximation of the true result. Absolute and relative error are used to measure approximation accuracy.

Uploaded by

Yash Dahiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views8 pages

MTH308B Lecture1

This document discusses numerical methods and floating point representations in computers. It introduces: 1) Numerical methods are algorithms used to approximate functions, derivatives, integrals, and solutions to nonlinear equations when analytical solutions are not possible. 2) Numbers are stored in computers using floating point representation, which approximates real numbers using a sign, significand, and exponent. This leads to representation errors. 3) Floating point operations also incur rounding errors, so the result of a calculation on floating point numbers is an approximation of the true result. Absolute and relative error are used to measure approximation accuracy.

Uploaded by

Yash Dahiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

MTH308B Leccure-1

Can e Teprsent hemunbet OT T sin


dacimals 2

J2 41421 35. Atrequiris infinite timg


Gnd spa a
T 3141592 6

Can we evaluate in n at 2

SnL 0 8 4147098.. endless )

Ca we.mpt ihe intagrol d 2

We need apPYOxima tions

U) Approximaions oPdata exa o fiwte preusio

U) APPYOXÅma tions F tunctahSiinite dimensianal


Bpata t inite
din en simal apa

AP o buratovs i.derivatH vos/tarals


inPixite step toinite
stps)
Overvies o üenti-fic TR Sear Ch.

s muw erialanalysis

physial model
Veri-fhcahon n physial
*moveynen of Eplatim eplanaio
obju of P r2sult
Oscillahi on
bod

del
asuntaltan o sults
Mathenati cal mo
ni a f i on
plot or

: Difereni «l q

Solva tth nuvmerial


methods.
becawe most CNLAS mot
possde to solve analyi ally

CmputweP
Prarammine
Mathematal heoroms
Lechra-
what are nvmeriGal me thods ?

The
They ara
algori thms to ompwte
) aPprOimati ons oP wncttons

derivafives at ome point

intzrval
int als in

n Ltnonli wet
oP solui ous

atw inl
implimen These algo vithms in Conowtes

Nwnerial methods re mot abow playin uth

L E is about ma the wmoti al rdcas and


and

ns ights.
We aill Stndy. thre basic tin
things

devolop mnt algori thms

2. implementa-ti on oriting Co de in Comowter)

3. abit analysis- in cluding error stimats,


ConvergnCo, sta bi üty
P-4
Kepresomtation o num.be in bas
di Yferant baws

0 de&mal daly w
binar Compwto

0Ctal

16 hexa d eci mal Gncen Cnina


Viqesim al
a0 ran C

RaeSima a b y loni ans


N

For te bone PEN On Can TI te Teal

Mww.bO RR rachomal part

= t(a,On a,a,. b.

O, L,
to deimal
Conver sl ow o bne p

t(a,p+nP +p+ a t + ,
+
10
ectre- L
Lsswme that yow Kare ho to snvert do

On Ca Kme)
Tw Joll oroing- SnNer si om.F no

Binar Deci mal Bina


Octal
Octal
Hexa deiwnol Hexadecima l

bina Octal Bina


Hexadoimal
Binar

Bina H 222
Octal 22
0 O
O0 O
2
O 3
0 O
5 1
6 O.1 0
L

O
A -
B
L 0
1
E

(10101 (00I O1OI)

(127) N) (oool10)= (1E)


P-6
Let R. e Te presem ittrpo to
ba
oan EN

x. t41

ohere re

oOiSP-,
a#0 normolizd)

ign
Rpoment

(.0,0as a = Ymanttssa o

Bis also all Tadi and , is Calld the

radi t.

ote +hoF
(.a,a.
Lecture- 1 -7
BRcanse of the limi tuions o Cvn pwtingplat-fprms, ne

bounds i tixed întaer


L, VE Z Sch that L ,
Ond also n e si2e t mamtssa, sa t

Thevefpre, the mumber in e

Cmpwter is tored 0ssetially in heform

O
L) 0, ) xp°- CP 2
o choppecd

machin
eprentati on

Or

t-place

GL ) + (.o0 01)]*P,
p
P TOunded, nachine
representati on .

T is alle loating g repreontoko.


P-
et = 0123 4 5621. For t= 5,

012345 (choppd)
f) 012346 roundaa)

Erer inthe loating pointepr on

FOr
FO E R, Fla) denota R lotng pomt.
poin

YpTe snti on o

ral mumbers
For
for most he

ETOrE() =* - fA*)

Absolate error =
A)= R ()}
Relative Tro R ( )

Absolute rekiv erov ARA) =


A .
#0
Let RA-S.Then, -FL( =S -

FL(«) =s

E()= -FA4) =-%6) xs

You might also like