Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
Numerical Methods
Lecture 3 β Base representation
Notes
Lecturer: Stephan Juricke
Date of lecture: February 11th, 2022
Author: Lirik Maxhuni
Base representation
Let π β π\{1}
...
π
π₯ = π0 π0 + π1π1 + β― ππ ππ = β ππ ππ
π=0
ππ β π0 , ππ < π, ππ β {0, β― , π β 1}
where π is the base, ππ are the digits
...
:
Base π = 10: 37294 = 4 β 100 + 9 β 101 + 2 β 102 + 7 β 103 + 3 β 104
Base π = 2: 1011 = 1 β 20 + 1 β 21 + 0 β 12 + 1 β 23 = (1)10 + (2)10 +
(0)10 + (8)10 = (11)10
These calculations can be done via algorithms, that can convert number
systems
...
1 π = π = 3:
π3 = 13 πππ£ 23 = 13 πππ£ 8 = 1 (πππ‘ππππ πππ£ππ πππ)
π₯ = 13 πππ 23 = 13 πππ 8 = 5 (πππ π‘)
Step 3
...
3 π = 1
π1 = 1 πππ£ 21 = 1 πππ£ 2 = 0
π₯ = 1 πππ 21 = 1 πππ 2 = 1
Step 3
...
e
...
, (0
...
0001100110011
...
e
...
,
(551
...
110 010 100)2
Sets of 3 in binary are 1 digit in octal
...
- Horneβs Scheme algorithm does not need division by large numbers
...
Computer precision and type of numbers
On computers we have only finite precision (number of digit bits)
Def: Normalized floating point representation with respect to base b, stores a
number x as π₯ = 0
...
The fact that π1 β 0 is called a
normalization, it makes representation unique
...
:
base π = 10: 32
...
32213 β 102
base π = 2: π₯ = Β± 0
...
e
...
e