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

Graphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygonsGraphics6 bresenham circlesandpolygons
Graphics6 bresenham circlesandpolygons
Thirunavukarasu Mani
 
Lines and curves algorithms
Lines and curves algorithmsLines and curves algorithms
Lines and curves algorithms
Mohammad 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

Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAlgoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Ari Septiawan
 

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

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
salmonpybus
 
Computer organiztion3
Computer organiztion3Computer organiztion3
Computer organiztion3
Umang Gupta
 

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

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

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 

Último (20)

“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdf
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.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