SlideShare a Scribd company logo
1 of 19
Applied physics III

Number systems: Arithmetic Operations

1
by Benson Mbuya
Review of basic concepts of arithmetic

2
Addition and subtraction of binary
numbers

3
Add the binary numbers 01010 and 10111

4
Subtract 111 from 10001

5
Hexadecimal Addition &
Subtraction
• Hexadecimal Addition

—Carry generated
• Hexadecimal Subtraction

—Borrow weight 16
Hexadecimal Addition
Carry 1
+

2AC6
92B5
BD7B

6+5=11d Bh
C+B=23d 17h
A+2+1=13d Dh
2+9=11d Bh
Hexadecimal Subtraction
Borrow
-

111
92B5
2AC6
67EF

21-6=15d Fh
26-C=14d Eh
17-A=7d 7h
8-2=6d 6h
Octal Addition & Subtraction
• Octal Addition

—Carry generated
• Octal Subtraction

—Borrow weight 8
Octal Addition
Carry 1
+

7602
5771
15573

2+1=3d 3O
0+7=7d 7O
6+7=13d 15O
1+7+5=13d 15O
Octal Subtraction
Borrow
-

11
7602
5771
1611

2-1=1d 1O
8-7=1d 1O
13-7=6d 6O
6-5=1d 1O
Addition and subtraction of hexadecimal numbers

12
13
14
Representing negative numbers in a
computer
• By convention the leftmost bit (or most
significant bit) is considered the sign bit.
• A value of 0 in the sign bit indicates a positive
number,
• whereas a 1 indicates a negative number.

15
examples

16
ONE’S COMPLEMENT

17
2’s Complement

18
references
• Chapter 30, Teach yourself electronics, 3rd ed, Stan
Gibilisco.
• Chapter 4, digital electronics demystified, Myke Predko.
• Chapter 18, Schaums outline: basic mathematics with
applications to science and technology, Kruglak, Moore.
• http://www.electronics.dit.ie/staff/tscarff/number_syste
ms/number_systems.html
• http://active.tutsplus.com/tutorials/codingconcepts/number-systems-an-introduction-to-binaryhexadecimal-and-more/
• http://www.math.grin.edu/~rebelsky/Courses/152/97F/
Readings/student-binary
• http://active.tutsplus.com/tutorials/codingconcepts/number-systems-an-introduction-to-binary19
hexadecimal-and-more/

More Related Content

What's hot

Wt4603 cutting list_machineexam
Wt4603 cutting list_machineexamWt4603 cutting list_machineexam
Wt4603 cutting list_machineexamJOE LYSTER
 
Om problems facility layout
Om problems   facility layoutOm problems   facility layout
Om problems facility layoutvideoaakash15
 
Transversals edmodo 2013 14
Transversals edmodo 2013 14Transversals edmodo 2013 14
Transversals edmodo 2013 14shumwayc
 
[Question Paper] Advanced SQL (Old Course) [April / 2015]
[Question Paper] Advanced SQL (Old Course) [April / 2015][Question Paper] Advanced SQL (Old Course) [April / 2015]
[Question Paper] Advanced SQL (Old Course) [April / 2015]Mumbai B.Sc.IT Study
 
8th pre alg -l9
8th pre alg -l98th pre alg -l9
8th pre alg -l9jdurst65
 
7th pre alg -l9
7th pre alg -l97th pre alg -l9
7th pre alg -l9jdurst65
 
Digital logic design lecture 2
Digital logic design lecture 2Digital logic design lecture 2
Digital logic design lecture 2JalpaMaheshwari1
 
An easiest way to solve "The general Trend Equation" for a time series
An easiest way to solve "The general Trend Equation" for a time series An easiest way to solve "The general Trend Equation" for a time series
An easiest way to solve "The general Trend Equation" for a time series Mohammed ElQadi
 
Algebra 1 Item No 38
Algebra 1 Item No 38Algebra 1 Item No 38
Algebra 1 Item No 38Lappy Doods
 
Teoría y problemas de Sumas Notables II sn26 ccesa007
Teoría y problemas de Sumas Notables II  sn26 ccesa007Teoría y problemas de Sumas Notables II  sn26 ccesa007
Teoría y problemas de Sumas Notables II sn26 ccesa007Demetrio Ccesa Rayme
 
W2 Example 5 Answers
W2 Example 5 AnswersW2 Example 5 Answers
W2 Example 5 Answersjcocks
 

What's hot (18)

Wt4603 cutting list_machineexam
Wt4603 cutting list_machineexamWt4603 cutting list_machineexam
Wt4603 cutting list_machineexam
 
Om problems facility layout
Om problems   facility layoutOm problems   facility layout
Om problems facility layout
 
Ch 1 Review
Ch 1 ReviewCh 1 Review
Ch 1 Review
 
Transversals edmodo 2013 14
Transversals edmodo 2013 14Transversals edmodo 2013 14
Transversals edmodo 2013 14
 
[Question Paper] Advanced SQL (Old Course) [April / 2015]
[Question Paper] Advanced SQL (Old Course) [April / 2015][Question Paper] Advanced SQL (Old Course) [April / 2015]
[Question Paper] Advanced SQL (Old Course) [April / 2015]
 
8th pre alg -l9
8th pre alg -l98th pre alg -l9
8th pre alg -l9
 
7th pre alg -l9
7th pre alg -l97th pre alg -l9
7th pre alg -l9
 
Digital logic design lecture 2
Digital logic design lecture 2Digital logic design lecture 2
Digital logic design lecture 2
 
Nivel de complejidad ejemplo
Nivel de complejidad ejemploNivel de complejidad ejemplo
Nivel de complejidad ejemplo
 
Ejerciciooo3
Ejerciciooo3Ejerciciooo3
Ejerciciooo3
 
An easiest way to solve "The general Trend Equation" for a time series
An easiest way to solve "The general Trend Equation" for a time series An easiest way to solve "The general Trend Equation" for a time series
An easiest way to solve "The general Trend Equation" for a time series
 
Time series statastics
Time series statasticsTime series statastics
Time series statastics
 
Algebra 1 Item No 38
Algebra 1 Item No 38Algebra 1 Item No 38
Algebra 1 Item No 38
 
Teoría y problemas de Sumas Notables II sn26 ccesa007
Teoría y problemas de Sumas Notables II  sn26 ccesa007Teoría y problemas de Sumas Notables II  sn26 ccesa007
Teoría y problemas de Sumas Notables II sn26 ccesa007
 
Vectores
Vectores Vectores
Vectores
 
Math hssc-i-a2
Math hssc-i-a2Math hssc-i-a2
Math hssc-i-a2
 
W2 Example 5 Answers
W2 Example 5 AnswersW2 Example 5 Answers
W2 Example 5 Answers
 
Decimal adder
Decimal adderDecimal adder
Decimal adder
 

Recently uploaded

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

Applied physics iii lecture2 number_systemsii