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.

My Basket

You have nothing in your shopping cart yet.

Title: Base representation
Description: Number representation

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
Title: Base representation
Description: Number representation