SlideShare uma empresa Scribd logo
1 de 11
Baixar para ler offline
ALGORITMA MATEMATIKA
INFORMASI: Fractional-Number
Ir. Sihar, MT.
T. Informatika – Fak. Teknologi Informasi
Bandung – 2009
FTI305 Organisasi dan Arsitektur Komputer (3 sks)
Daftar Pustaka
1) Bell, C. Gordon, Newell, A. Computer Structures: Readings and
Examples. McGraw-Hill computer science series. 1971.
2) Hennessy, J.L., Patterson, D.A. Computer Architecture: A Quantitative
Approach. Morgan-Kaufmann. 2004.
3) Larry L. Wear, L.L., Pinkert, J.R., Lane, W.G. Computers, An Introduction
to Hardware and Software Design. McGraw-Hill. 1999.
4) Scott, N.R. Computer Number Systems and Arithmetic. Prentice-Hall.
1985.
5) Simamora, S.N.M.P. “Diktat Kuliah Algoritma dan Pemrograman-I”,
Program studi Teknik Informatika. Fak. Teknik. UTAMA. Bandung. 2009.
6) Simamora, S.N.M.P. “Diktat Kuliah IF101 Pengantar Teknik Informatika”.
Departemen Teknik Informatika. Fak. Teknik. ITHB. Bandung. 2002.
7) Simamora, S.N.M.P. “Diktat Kuliah CE113 Sistem Komputer”. Program
studi Teknik Komputer. Politeknik TELKOM. Bandung. 2007.
8) Simamora, S.N.M.P. “Diktat Sistem Mikroprosesor dan Antar-muka”.
Dept. Sistem Komputer, Fak. Teknik. ITHB. Bandung. 2002.
Konsep dan Pola A-1 =
A
1
A-3 =
)(
1
AAA ∗∗
A ÷ B = C sisa D; maka A%B = D
jika: X ÷ B = T
B
z
; maka: X←T∗B+z;
2-1 =
2
1
2-3 =
8
1
2-5 =
32
1
8-1 =
8
1
8-2 =
64
1
8-3 =
512
1
16-1 =
16
1
16-2 =
256
1
16-3 =
4096
1
(2.5)10 = (2.0)10 + (0.5)10
14
= 0∗17+14
17
Jika maka:b
ac = bca
=)log(
Hukum Komutatif: A ∗ B = B ∗ A;
Hukum Distributif: A ∗ (B+C) = (A ∗ B) + (A ∗ C);
Hukum Asosiatif: (A ∗ B) ∗ C = A ∗ (B ∗ C);
11
= 3∗19+11
19
3
(2.5)16 = (2.0)16 + (0.5)16
(5)10 = (5)16 = (5)8
“Suatu bilangan jika
dikalikan dengan 0, maka
hasilnya selalu 0”
“Suatu bilangan jika
dipangkatkan dengan 0,
maka hasilnya selalu 1”
“Suatu bilangan jika
dipangkatkan dengan 1, maka
hasilnya bilangan itu sendiri”
= 0.5
= 0.125
= 0.03125
Kasus: Transformasikan expression berikut dalam operator ADD.
48 ∗ 4 = ...?...
Solusi: 0
48
+
48
48
+
96
48
+
144
48
+
192
maka: 48∗4 = 192
(1)
(2)
(3)
(4)
Tampilan jalannya program:
Alternatif-1:
Alternatif-2:
Alternatif-3:
Kasus: Transformasikan expression berikut dalam operator SUB.
18 ÷ 3 = ...?...
Solusi:
18
selesai
Lakukan proses pengurangan oleh pembagi terhadap nilai yang dibagi sampai hasil
pengurangan = 0.
3
-
0
15
3
-
12
3
-
9
3
-
6
3
-
3
3
-
(1)
(2)
(3)
(4)
(5)
(6)
maka: 18 ÷ 3 = 6
Alternatif-1:
Alternatif-2:
Tampilan jalannya program:
Kasus:BIN⇒DEC (0.001)2 = ( ... )10
Solusi: = (0)(2-1) + (0)(2-2) + (1)(2-3)
= 0 + 0 +
=
8
1
108
1






(0.001)2
Kasus: (101.101)2 = ( ... )10
Solusi:
= (1)(2-1) + (0)(2-2) + (1)(2-3)
= + 0 +
=
=
8
1
108
5






(0.101)2
(101.101)2 = (101.0)2 + (0.101)2
Bagian-1 Bagian-2
= (1)(22) + (0)(21) + (1)(20)
= 4 + 0 + 1
= (5)10
(101.0)2
Bagian-1 Bagian-2
2
1
8
)14( +
Bagian-1 + Bagian-2 = (5)10 +
108
5






maka: (101.101)2 =
108
5
5 





DEC⇒BIN Kasus: (0.8125)10 = ( ... )2
Solusi:
0.8125 ∗ 2 = 1.625
2-4 =
16
1
8-3 =
512
1
= 0.0625
= 0.001953
0.625 ∗ 2 = 1.25
1
1
0.25 ∗ 2 = 0.5
0
0.5 ∗ 2 = 1.0
stop!
1
direkonstruksi: (0.1101)2
maka: (0.8125)10 = (0.1101)2
Kasus: (3.125)10 = ( ... )2
Solusi:
0.125 ∗ 2 = 0.25
0.25 ∗ 2 = 0.5
0
0
0.5 ∗ 2 = 1.0
1
stop!
direkonstruksi: (0.001)2
maka: (0.125)10 = (0.001)2
(3.125)10 = (3.0)10 + (0.125)10
Bagian-1 Bagian-2
(3.0)10 = (011)2
Bagian-1
Bagian-2
Bagian-1 + Bagian-2 = (011.0)2 + (0.001)2 = (011.001)2
maka: (3.125)10 = (011.001)2
HEX⇒DEC Kasus: (0.A01)16 = ( ... )10
Solusi: = (A)(16-1) + (0)(16-2) + (1)(16-3)
= (10) + 0 +
=
4096
1
1010 4096
2561
4096
12560






=




 +
(0.A01)16
16
1
Kasus: (1B1.C4)16 = ( ... )10
Solusi:
= (12)(16-1) + (4)(16-2)
= +
=
=
256
4
10256
196






(0.C4)16
(1B1.C4)16 = (1B1.0)16 + (0.C4)16
Bagian-1 Bagian-2
= (1)(162) + (11)(161) + (1)(160)
= 256 + 176 + 1
= (433)10
(1B1.0)16
Bagian-1 Bagian-2
16
12
256
)4192( +
Bagian-1 + Bagian-2 = (433)10 +
10256
196






maka: (1B1.C4)16 =
10256
196
433 





Kasus:
DEC⇒HEX
(30.066406)10 = ( ... )16
Kasus: (0.757813)10 = ( ... )16
Solusi:
0.757813 ∗ 16 = 12.125
0.125 ∗ 16 = 2.0
12
2
stop!
direkonstruksi: (0.C2)16
maka: (0.757813)10 = (0.C2)16
⇒ C
16-3 =
16-4 =
4096
1
= 0.000244
65536
1
= 1.5288 x 10-5
(30.066406)10 = (30.0)10 + (0.066406)10
Bagian-1 Bagian-2
(30.0)10 = ( ... )16
Bagian-1
Solusi:
30 ÷ 16 = 1 sisa 14
1 ÷ 16 = 0 sisa 1
E 0x1E
0.0625 ∗ 16 = 1.0
1
1
0.066406 ∗ 16 = 1.0625
stop!
direkonstruksi: (0.11)16
Bagian-2
maka: (0.0066406)10 = (0.11)16
Bagian-1 + Bagian-2 = (1E.0)16 + (0.11)16 = (1E.11)16
maka: (30.066406)10 = (1E.11)16
OCT⇒DEC
Bagian-1 Bagian-2
Kasus: (0.701)8 = ( ... )10
Solusi: = (7)(8-1) + (0)(8-2) + (1)(8-3)
= (7) + 0 +
=
512
1
1010 512
449
512
1448






=




 +
(0.701)8
8
1
Kasus: (71.17)8 = ( ... )10
Solusi: (71.17)8 = (71.0)8 + (0.17)8
= (1)(8-1) + (7)(8-2)
= +
=
=
64
7
1064
15






(0.17)8= (7)(81) + (1)(80)
= 56 + 1
= (57)10
(71.0)8
Bagian-1 Bagian-2
8
1
64
)78( +
Bagian-1 + Bagian-2 = (57)10 +
1064
15






maka: (71.17)8 =
1064
15
57 





Kasus:
DEC⇒OCT Kasus: (0.421875)10 = ( ... )8
Solusi:
0.421875 ∗ 8 = 3.375
0.375 ∗ 8 = 3.0
3
3
direkonstruksi: (0.33)8
maka: (0.421875)10 = (0.33)8
(71.65625)10 = ( ... )8
stop!
(71.65625)10 = (71.0)10 + (0.65625)10
Bagian-1 Bagian-2
Solusi:
(71.0)10 = ( ... )8
Bagian-1
71 ÷ 8 = 8 sisa 7
8 ÷ 8 = 1 sisa 0 0107
0.25 ∗ 8 = 2.0
2
5
0.65625 ∗ 8 = 5.25
stop!
direkonstruksi: (0.52)8
Bagian-2
maka: (0.65625)10 = (0.52)8
Bagian-1 + Bagian-2 = (107.0)8 + (0.52)8 = (107.52)8
maka: (71.65625)10 = (107.52)8
1 ÷ 8 = 0 sisa 1

Mais conteúdo relacionado

Mais procurados

Bresenham's line algorithm
Bresenham's line algorithmBresenham's line algorithm
Bresenham's line algorithmPooja Dixit
 
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...Rai University
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons dericationKumar
 
Graphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygonsGraphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygonsThirunavukarasu Mani
 
Lab lecture 2 bresenham
Lab lecture 2 bresenhamLab lecture 2 bresenham
Lab lecture 2 bresenhamsimpleok
 
Data representation
Data representationData representation
Data representationChew Hoong
 
C3 3.1
C3 3.1C3 3.1
C3 3.1BGEsp1
 
Bresenham Line Drawing Algorithm
Bresenham Line Drawing AlgorithmBresenham Line Drawing Algorithm
Bresenham Line Drawing AlgorithmMahesh Kodituwakku
 
Lines and curves algorithms
Lines and curves algorithmsLines and curves algorithms
Lines and curves algorithmsMohammad Sadiq
 

Mais procurados (18)

Đề Thi HK2 Toán 8 - THCS Nguyễn Hồng Đào
Đề Thi HK2 Toán 8 - THCS Nguyễn Hồng ĐàoĐề Thi HK2 Toán 8 - THCS Nguyễn Hồng Đào
Đề Thi HK2 Toán 8 - THCS Nguyễn Hồng Đào
 
Bresenham's line algorithm
Bresenham's line algorithmBresenham's line algorithm
Bresenham's line algorithm
 
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
Bca 2nd sem u-1.1 digital logic circuits, digital component floting and fixed...
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
 
Graphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygonsGraphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygons
 
Lab lecture 2 bresenham
Lab lecture 2 bresenhamLab lecture 2 bresenham
Lab lecture 2 bresenham
 
DDA algorithm
DDA algorithmDDA algorithm
DDA algorithm
 
Data representation
Data representationData representation
Data representation
 
C3 3.1
C3 3.1C3 3.1
C3 3.1
 
Cs580
Cs580Cs580
Cs580
 
Bresenham Line Drawing Algorithm
Bresenham Line Drawing AlgorithmBresenham Line Drawing Algorithm
Bresenham Line Drawing Algorithm
 
Lines and curves algorithms
Lines and curves algorithmsLines and curves algorithms
Lines and curves algorithms
 
Dda algorithm
Dda algorithmDda algorithm
Dda algorithm
 
Ejercicios n7
Ejercicios n7Ejercicios n7
Ejercicios n7
 
Binary numbersystem
Binary numbersystemBinary numbersystem
Binary numbersystem
 
Dda algo notes
Dda algo notesDda algo notes
Dda algo notes
 
numbers system
numbers systemnumbers system
numbers system
 
Line circle draw
Line circle drawLine circle draw
Line circle draw
 

Destaque

Analytical tool for determination of traces of cu (ii)
Analytical tool for determination of traces of cu (ii)Analytical tool for determination of traces of cu (ii)
Analytical tool for determination of traces of cu (ii)Alexander Decker
 
Pemrograman komputer 1 (algoritma)
Pemrograman komputer  1 (algoritma)Pemrograman komputer  1 (algoritma)
Pemrograman komputer 1 (algoritma)jayamartha
 
Algoritma pemrograman
Algoritma pemrogramanAlgoritma pemrograman
Algoritma pemrogramandian pw
 
Alpro I-latihan_kasus-r11102015
Alpro I-latihan_kasus-r11102015Alpro I-latihan_kasus-r11102015
Alpro I-latihan_kasus-r11102015staffpengajar
 
Algoritma dan pemrograman 1
Algoritma dan pemrograman 1Algoritma dan pemrograman 1
Algoritma dan pemrograman 1Javra Ketoprak
 
alpro Chapter02
alpro Chapter02alpro Chapter02
alpro Chapter02Dermawan12
 
Algoritma dan flowchart
Algoritma dan flowchartAlgoritma dan flowchart
Algoritma dan flowchartPT.goLom na
 
Diktat kuliah Algoritma dan Pemograman
Diktat kuliah Algoritma dan PemogramanDiktat kuliah Algoritma dan Pemograman
Diktat kuliah Algoritma dan PemogramanPisca Prasetyo
 
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAlgoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAri Septiawan
 
Algoritma Matematika Informasi
Algoritma Matematika InformasiAlgoritma Matematika Informasi
Algoritma Matematika Informasistaffpengajar
 

Destaque (17)

Analytical tool for determination of traces of cu (ii)
Analytical tool for determination of traces of cu (ii)Analytical tool for determination of traces of cu (ii)
Analytical tool for determination of traces of cu (ii)
 
Minggu_6 TIF305
Minggu_6 TIF305Minggu_6 TIF305
Minggu_6 TIF305
 
About vb script-sns
About vb script-snsAbout vb script-sns
About vb script-sns
 
Tugas perulangan
Tugas perulanganTugas perulangan
Tugas perulangan
 
Pemrograman komputer 1 (algoritma)
Pemrograman komputer  1 (algoritma)Pemrograman komputer  1 (algoritma)
Pemrograman komputer 1 (algoritma)
 
Algoritma pemrograman
Algoritma pemrogramanAlgoritma pemrograman
Algoritma pemrograman
 
Alpro I-latihan_kasus-r11102015
Alpro I-latihan_kasus-r11102015Alpro I-latihan_kasus-r11102015
Alpro I-latihan_kasus-r11102015
 
Tugas alpro
Tugas alproTugas alpro
Tugas alpro
 
Algoritma dan pemrograman 1
Algoritma dan pemrograman 1Algoritma dan pemrograman 1
Algoritma dan pemrograman 1
 
alpro Chapter02
alpro Chapter02alpro Chapter02
alpro Chapter02
 
Algoritma dan flowchart
Algoritma dan flowchartAlgoritma dan flowchart
Algoritma dan flowchart
 
03 pseudocode
03 pseudocode03 pseudocode
03 pseudocode
 
Diktat kuliah Algoritma dan Pemograman
Diktat kuliah Algoritma dan PemogramanDiktat kuliah Algoritma dan Pemograman
Diktat kuliah Algoritma dan Pemograman
 
Algoritma flowchart
Algoritma flowchartAlgoritma flowchart
Algoritma flowchart
 
Tugas algoritma ( flowchart )
Tugas algoritma ( flowchart )Tugas algoritma ( flowchart )
Tugas algoritma ( flowchart )
 
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAlgoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
 
Algoritma Matematika Informasi
Algoritma Matematika InformasiAlgoritma Matematika Informasi
Algoritma Matematika Informasi
 

Semelhante a Fractional-number Algorithm

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Department of MathematicsMTL107 Numerical Methods and Com.docx
Department of MathematicsMTL107 Numerical Methods and Com.docxDepartment of MathematicsMTL107 Numerical Methods and Com.docx
Department of MathematicsMTL107 Numerical Methods and Com.docxsalmonpybus
 
Bs cs course outline
Bs cs course outlineBs cs course outline
Bs cs course outlineSajid Mewati
 
Computer organiztion3
Computer organiztion3Computer organiztion3
Computer organiztion3Umang Gupta
 
Finding root of equation (numarical method)
Finding root of equation (numarical method)Finding root of equation (numarical method)
Finding root of equation (numarical method)Rajan Thakkar
 
digital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxdigital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxRameshK531901
 
THTT so 449 tháng 11 năm 2014
THTT so 449 tháng 11 năm 2014THTT so 449 tháng 11 năm 2014
THTT so 449 tháng 11 năm 2014Hoàng Ngọc
 
Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practicalRahul juneja
 
Functional Regression Analysis
Functional Regression AnalysisFunctional Regression Analysis
Functional Regression AnalysisNeuroMat
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1Deepak John
 

Semelhante a Fractional-number Algorithm (20)

add math form 4/5
add math form 4/5add math form 4/5
add math form 4/5
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Department of MathematicsMTL107 Numerical Methods and Com.docx
Department of MathematicsMTL107 Numerical Methods and Com.docxDepartment of MathematicsMTL107 Numerical Methods and Com.docx
Department of MathematicsMTL107 Numerical Methods and Com.docx
 
Bs cs course outline
Bs cs course outlineBs cs course outline
Bs cs course outline
 
E33018021
E33018021E33018021
E33018021
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Computer organiztion3
Computer organiztion3Computer organiztion3
Computer organiztion3
 
Digital Logic & Design
Digital Logic & DesignDigital Logic & Design
Digital Logic & Design
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 
Es272 ch1
Es272 ch1Es272 ch1
Es272 ch1
 
Unit 1(stld)
Unit 1(stld)Unit 1(stld)
Unit 1(stld)
 
Finding root of equation (numarical method)
Finding root of equation (numarical method)Finding root of equation (numarical method)
Finding root of equation (numarical method)
 
digital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxdigital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptx
 
THTT so 449 tháng 11 năm 2014
THTT so 449 tháng 11 năm 2014THTT so 449 tháng 11 năm 2014
THTT so 449 tháng 11 năm 2014
 
Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practical
 
Functional Regression Analysis
Functional Regression AnalysisFunctional Regression Analysis
Functional Regression Analysis
 
Palm ch1
Palm ch1Palm ch1
Palm ch1
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 

Mais de staffpengajar

Lthn_kasus_M13_alpro.pdf
Lthn_kasus_M13_alpro.pdfLthn_kasus_M13_alpro.pdf
Lthn_kasus_M13_alpro.pdfstaffpengajar
 
Dasar Operator Arithmatika_python.pdf
Dasar Operator Arithmatika_python.pdfDasar Operator Arithmatika_python.pdf
Dasar Operator Arithmatika_python.pdfstaffpengajar
 
artikel_IoT_PR_snmpsimamora.pdf
artikel_IoT_PR_snmpsimamora.pdfartikel_IoT_PR_snmpsimamora.pdf
artikel_IoT_PR_snmpsimamora.pdfstaffpengajar
 
Japaness multiplification 3 variables and 4 variables
Japaness multiplification 3 variables and 4 variablesJapaness multiplification 3 variables and 4 variables
Japaness multiplification 3 variables and 4 variablesstaffpengajar
 
Randomize number vbscript_sns
Randomize number vbscript_snsRandomize number vbscript_sns
Randomize number vbscript_snsstaffpengajar
 
sns77 vb script_politel
sns77 vb script_politelsns77 vb script_politel
sns77 vb script_politelstaffpengajar
 
Diktat c++ d76_dev-cpp
Diktat c++ d76_dev-cppDiktat c++ d76_dev-cpp
Diktat c++ d76_dev-cppstaffpengajar
 
Algoritma Matematika Informasi dalam Pemrograman C++
Algoritma Matematika Informasi dalam Pemrograman C++Algoritma Matematika Informasi dalam Pemrograman C++
Algoritma Matematika Informasi dalam Pemrograman C++staffpengajar
 
Artikel sns op-bndg_2000
Artikel sns op-bndg_2000Artikel sns op-bndg_2000
Artikel sns op-bndg_2000staffpengajar
 
sns about struct-cpp
sns about struct-cppsns about struct-cpp
sns about struct-cppstaffpengajar
 
Allen d76 matlab-adjoe_
Allen d76 matlab-adjoe_Allen d76 matlab-adjoe_
Allen d76 matlab-adjoe_staffpengajar
 
What about spim-simulator
What about spim-simulatorWhat about spim-simulator
What about spim-simulatorstaffpengajar
 
Notes reliability engineering
Notes reliability engineeringNotes reliability engineering
Notes reliability engineeringstaffpengajar
 

Mais de staffpengajar (20)

Lthn_kasus_M13_alpro.pdf
Lthn_kasus_M13_alpro.pdfLthn_kasus_M13_alpro.pdf
Lthn_kasus_M13_alpro.pdf
 
M15_alpro_.pdf
M15_alpro_.pdfM15_alpro_.pdf
M15_alpro_.pdf
 
M09-jarKomp-1_.pdf
M09-jarKomp-1_.pdfM09-jarKomp-1_.pdf
M09-jarKomp-1_.pdf
 
M10-jarKomp-1.pdf
M10-jarKomp-1.pdfM10-jarKomp-1.pdf
M10-jarKomp-1.pdf
 
Dasar Operator Arithmatika_python.pdf
Dasar Operator Arithmatika_python.pdfDasar Operator Arithmatika_python.pdf
Dasar Operator Arithmatika_python.pdf
 
artikel_IoT_PR_snmpsimamora.pdf
artikel_IoT_PR_snmpsimamora.pdfartikel_IoT_PR_snmpsimamora.pdf
artikel_IoT_PR_snmpsimamora.pdf
 
data_dan_DBase_.pdf
data_dan_DBase_.pdfdata_dan_DBase_.pdf
data_dan_DBase_.pdf
 
Japaness multiplification 3 variables and 4 variables
Japaness multiplification 3 variables and 4 variablesJapaness multiplification 3 variables and 4 variables
Japaness multiplification 3 variables and 4 variables
 
Randomize number vbscript_sns
Randomize number vbscript_snsRandomize number vbscript_sns
Randomize number vbscript_sns
 
sns77 vb script_politel
sns77 vb script_politelsns77 vb script_politel
sns77 vb script_politel
 
Diktat c++ d76_dev-cpp
Diktat c++ d76_dev-cppDiktat c++ d76_dev-cpp
Diktat c++ d76_dev-cpp
 
Algoritma Matematika Informasi dalam Pemrograman C++
Algoritma Matematika Informasi dalam Pemrograman C++Algoritma Matematika Informasi dalam Pemrograman C++
Algoritma Matematika Informasi dalam Pemrograman C++
 
Artikel sns op-bndg_2000
Artikel sns op-bndg_2000Artikel sns op-bndg_2000
Artikel sns op-bndg_2000
 
sns about struct-cpp
sns about struct-cppsns about struct-cpp
sns about struct-cpp
 
Allen d76 matlab-adjoe_
Allen d76 matlab-adjoe_Allen d76 matlab-adjoe_
Allen d76 matlab-adjoe_
 
What about spim-simulator
What about spim-simulatorWhat about spim-simulator
What about spim-simulator
 
Notes reliability engineering
Notes reliability engineeringNotes reliability engineering
Notes reliability engineering
 
Matlab sns_77
Matlab sns_77Matlab sns_77
Matlab sns_77
 
Matlab tutor sns
Matlab tutor snsMatlab tutor sns
Matlab tutor sns
 
sns es oop_
sns es oop_sns es oop_
sns es oop_
 

Último

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 

Último (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 

Fractional-number Algorithm

  • 1. ALGORITMA MATEMATIKA INFORMASI: Fractional-Number Ir. Sihar, MT. T. Informatika – Fak. Teknologi Informasi Bandung – 2009 FTI305 Organisasi dan Arsitektur Komputer (3 sks)
  • 2. Daftar Pustaka 1) Bell, C. Gordon, Newell, A. Computer Structures: Readings and Examples. McGraw-Hill computer science series. 1971. 2) Hennessy, J.L., Patterson, D.A. Computer Architecture: A Quantitative Approach. Morgan-Kaufmann. 2004. 3) Larry L. Wear, L.L., Pinkert, J.R., Lane, W.G. Computers, An Introduction to Hardware and Software Design. McGraw-Hill. 1999. 4) Scott, N.R. Computer Number Systems and Arithmetic. Prentice-Hall. 1985. 5) Simamora, S.N.M.P. “Diktat Kuliah Algoritma dan Pemrograman-I”, Program studi Teknik Informatika. Fak. Teknik. UTAMA. Bandung. 2009. 6) Simamora, S.N.M.P. “Diktat Kuliah IF101 Pengantar Teknik Informatika”. Departemen Teknik Informatika. Fak. Teknik. ITHB. Bandung. 2002. 7) Simamora, S.N.M.P. “Diktat Kuliah CE113 Sistem Komputer”. Program studi Teknik Komputer. Politeknik TELKOM. Bandung. 2007. 8) Simamora, S.N.M.P. “Diktat Sistem Mikroprosesor dan Antar-muka”. Dept. Sistem Komputer, Fak. Teknik. ITHB. Bandung. 2002.
  • 3. Konsep dan Pola A-1 = A 1 A-3 = )( 1 AAA ∗∗ A ÷ B = C sisa D; maka A%B = D jika: X ÷ B = T B z ; maka: X←T∗B+z; 2-1 = 2 1 2-3 = 8 1 2-5 = 32 1 8-1 = 8 1 8-2 = 64 1 8-3 = 512 1 16-1 = 16 1 16-2 = 256 1 16-3 = 4096 1 (2.5)10 = (2.0)10 + (0.5)10 14 = 0∗17+14 17 Jika maka:b ac = bca =)log( Hukum Komutatif: A ∗ B = B ∗ A; Hukum Distributif: A ∗ (B+C) = (A ∗ B) + (A ∗ C); Hukum Asosiatif: (A ∗ B) ∗ C = A ∗ (B ∗ C); 11 = 3∗19+11 19 3 (2.5)16 = (2.0)16 + (0.5)16 (5)10 = (5)16 = (5)8 “Suatu bilangan jika dikalikan dengan 0, maka hasilnya selalu 0” “Suatu bilangan jika dipangkatkan dengan 0, maka hasilnya selalu 1” “Suatu bilangan jika dipangkatkan dengan 1, maka hasilnya bilangan itu sendiri” = 0.5 = 0.125 = 0.03125
  • 4. Kasus: Transformasikan expression berikut dalam operator ADD. 48 ∗ 4 = ...?... Solusi: 0 48 + 48 48 + 96 48 + 144 48 + 192 maka: 48∗4 = 192 (1) (2) (3) (4) Tampilan jalannya program: Alternatif-1: Alternatif-2: Alternatif-3:
  • 5. Kasus: Transformasikan expression berikut dalam operator SUB. 18 ÷ 3 = ...?... Solusi: 18 selesai Lakukan proses pengurangan oleh pembagi terhadap nilai yang dibagi sampai hasil pengurangan = 0. 3 - 0 15 3 - 12 3 - 9 3 - 6 3 - 3 3 - (1) (2) (3) (4) (5) (6) maka: 18 ÷ 3 = 6 Alternatif-1: Alternatif-2: Tampilan jalannya program:
  • 6. Kasus:BIN⇒DEC (0.001)2 = ( ... )10 Solusi: = (0)(2-1) + (0)(2-2) + (1)(2-3) = 0 + 0 + = 8 1 108 1       (0.001)2 Kasus: (101.101)2 = ( ... )10 Solusi: = (1)(2-1) + (0)(2-2) + (1)(2-3) = + 0 + = = 8 1 108 5       (0.101)2 (101.101)2 = (101.0)2 + (0.101)2 Bagian-1 Bagian-2 = (1)(22) + (0)(21) + (1)(20) = 4 + 0 + 1 = (5)10 (101.0)2 Bagian-1 Bagian-2 2 1 8 )14( + Bagian-1 + Bagian-2 = (5)10 + 108 5       maka: (101.101)2 = 108 5 5      
  • 7. DEC⇒BIN Kasus: (0.8125)10 = ( ... )2 Solusi: 0.8125 ∗ 2 = 1.625 2-4 = 16 1 8-3 = 512 1 = 0.0625 = 0.001953 0.625 ∗ 2 = 1.25 1 1 0.25 ∗ 2 = 0.5 0 0.5 ∗ 2 = 1.0 stop! 1 direkonstruksi: (0.1101)2 maka: (0.8125)10 = (0.1101)2 Kasus: (3.125)10 = ( ... )2 Solusi: 0.125 ∗ 2 = 0.25 0.25 ∗ 2 = 0.5 0 0 0.5 ∗ 2 = 1.0 1 stop! direkonstruksi: (0.001)2 maka: (0.125)10 = (0.001)2 (3.125)10 = (3.0)10 + (0.125)10 Bagian-1 Bagian-2 (3.0)10 = (011)2 Bagian-1 Bagian-2 Bagian-1 + Bagian-2 = (011.0)2 + (0.001)2 = (011.001)2 maka: (3.125)10 = (011.001)2
  • 8. HEX⇒DEC Kasus: (0.A01)16 = ( ... )10 Solusi: = (A)(16-1) + (0)(16-2) + (1)(16-3) = (10) + 0 + = 4096 1 1010 4096 2561 4096 12560       =      + (0.A01)16 16 1 Kasus: (1B1.C4)16 = ( ... )10 Solusi: = (12)(16-1) + (4)(16-2) = + = = 256 4 10256 196       (0.C4)16 (1B1.C4)16 = (1B1.0)16 + (0.C4)16 Bagian-1 Bagian-2 = (1)(162) + (11)(161) + (1)(160) = 256 + 176 + 1 = (433)10 (1B1.0)16 Bagian-1 Bagian-2 16 12 256 )4192( + Bagian-1 + Bagian-2 = (433)10 + 10256 196       maka: (1B1.C4)16 = 10256 196 433      
  • 9. Kasus: DEC⇒HEX (30.066406)10 = ( ... )16 Kasus: (0.757813)10 = ( ... )16 Solusi: 0.757813 ∗ 16 = 12.125 0.125 ∗ 16 = 2.0 12 2 stop! direkonstruksi: (0.C2)16 maka: (0.757813)10 = (0.C2)16 ⇒ C 16-3 = 16-4 = 4096 1 = 0.000244 65536 1 = 1.5288 x 10-5 (30.066406)10 = (30.0)10 + (0.066406)10 Bagian-1 Bagian-2 (30.0)10 = ( ... )16 Bagian-1 Solusi: 30 ÷ 16 = 1 sisa 14 1 ÷ 16 = 0 sisa 1 E 0x1E 0.0625 ∗ 16 = 1.0 1 1 0.066406 ∗ 16 = 1.0625 stop! direkonstruksi: (0.11)16 Bagian-2 maka: (0.0066406)10 = (0.11)16 Bagian-1 + Bagian-2 = (1E.0)16 + (0.11)16 = (1E.11)16 maka: (30.066406)10 = (1E.11)16
  • 10. OCT⇒DEC Bagian-1 Bagian-2 Kasus: (0.701)8 = ( ... )10 Solusi: = (7)(8-1) + (0)(8-2) + (1)(8-3) = (7) + 0 + = 512 1 1010 512 449 512 1448       =      + (0.701)8 8 1 Kasus: (71.17)8 = ( ... )10 Solusi: (71.17)8 = (71.0)8 + (0.17)8 = (1)(8-1) + (7)(8-2) = + = = 64 7 1064 15       (0.17)8= (7)(81) + (1)(80) = 56 + 1 = (57)10 (71.0)8 Bagian-1 Bagian-2 8 1 64 )78( + Bagian-1 + Bagian-2 = (57)10 + 1064 15       maka: (71.17)8 = 1064 15 57      
  • 11. Kasus: DEC⇒OCT Kasus: (0.421875)10 = ( ... )8 Solusi: 0.421875 ∗ 8 = 3.375 0.375 ∗ 8 = 3.0 3 3 direkonstruksi: (0.33)8 maka: (0.421875)10 = (0.33)8 (71.65625)10 = ( ... )8 stop! (71.65625)10 = (71.0)10 + (0.65625)10 Bagian-1 Bagian-2 Solusi: (71.0)10 = ( ... )8 Bagian-1 71 ÷ 8 = 8 sisa 7 8 ÷ 8 = 1 sisa 0 0107 0.25 ∗ 8 = 2.0 2 5 0.65625 ∗ 8 = 5.25 stop! direkonstruksi: (0.52)8 Bagian-2 maka: (0.65625)10 = (0.52)8 Bagian-1 + Bagian-2 = (107.0)8 + (0.52)8 = (107.52)8 maka: (71.65625)10 = (107.52)8 1 ÷ 8 = 0 sisa 1