Binary Addition Homework: 010110000000000 & More

  • Thread starter Thread starter ee1215
  • Start date Start date
  • Tags Tags
    Addition Binary
Click For Summary
SUMMARY

The discussion centers on the binary addition of six 15-bit binary numbers, resulting in the sum 1010111011000101. The user encountered discrepancies while using MATLAB, specifically with the first four digits appearing reversed. The confusion arises from the carry operation starting from the 12th column, where the user miscalculated the carry from adding multiple ones. The correct approach involves understanding binary carry operations and aligning the results accurately.

PREREQUISITES
  • Binary number representation
  • Binary addition rules
  • MATLAB programming for binary operations
  • Understanding of carry in binary arithmetic
NEXT STEPS
  • Study binary addition techniques in detail
  • Learn about MATLAB's binary functions and operations
  • Explore how to visualize binary addition step-by-step
  • Research common pitfalls in binary arithmetic calculations
USEFUL FOR

This discussion is beneficial for students learning binary arithmetic, MATLAB users working with binary data, and anyone interested in understanding binary addition and carry operations in computational contexts.

ee1215
Messages
27
Reaction score
0

Homework Statement



010110000000000
011001000000000
001100010000000
100100001000000
110100000000100
111100000000001
+
-------------------

Homework Equations





The Attempt at a Solution


The answer I get is 1010111011000101
but I have used MATLAB and the first four digits are backwards on my answer per matlab. I am confused on how they get that when carrying the 1 starting with the 12th row from the right.
 
Physics news on Phys.org
ee1215 said:

Homework Statement



010110000000000
011001000000000
001100010000000
100100001000000
110100000000100
111100000000001
+
-------------------

Homework Equations





The Attempt at a Solution


The answer I get is 1010111011000101
but I have used MATLAB and the first four digits are backwards on my answer per matlab. I am confused on how they get that when carrying the 1 starting with the 12th row from the right.

Rows are horizontal. Columns are vertical, just like the columns in a building. Starting from the 4th column from the left, you're adding 1 + 1 + 1 + 1 + 1 = 5 = 1012. You have a 0 at that position, and you should have a 1, and you need to carry 4 (or 1002).
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 4 ·
Replies
4
Views
16K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K