Binary Addition Homework: 010110000000000 & More

  • Thread starter Thread starter ee1215
  • Start date Start date
  • Tags Tags
    Addition Binary
AI Thread Summary
The discussion centers on binary addition of several binary numbers, specifically the sum of 010110000000000, 011001000000000, 001100010000000, 100100001000000, 110100000000100, and 111100000000001. The user reports obtaining an answer of 1010111011000101, but notes discrepancies with MATLAB, particularly with the first four digits appearing reversed. The confusion arises from the carrying process, especially starting from the 12th position from the right. A clarification is provided that when adding five 1s in the fourth column from the left, the correct carry should be accounted for, leading to a potential error in the user's calculation. Understanding the binary addition rules and carrying is essential for accurate results.
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).
 
Back
Top