Binary Addition Homework: 010110000000000 & More

If you add that correctly, you should get the correct answer.In summary, the conversation discusses the process of adding binary numbers and explains how the answer is obtained by carrying digits and filling in zeros. It also mentions the potential confusion in reading the answer from MATLAB due to differences in row and column orientation.
  • #1
ee1215
29
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
  • #2
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).
 

FAQ: Binary Addition Homework: 010110000000000 & More

What is binary addition?

Binary addition is a mathematical operation that involves adding two binary numbers together to get a sum. Binary numbers are a base-2 numeral system, meaning they only use the digits 0 and 1. Just like addition in the decimal system, binary addition follows the same rules of carrying over digits when the sum is greater than the base number.

How do I add binary numbers?

To add binary numbers, you can use the same method as addition in the decimal system. Start by adding the rightmost digits together, and if the sum is greater than 1, carry over the 1 to the next column. Continue this process until you have added all the digits. If there is a carry over at the end, add it to the final sum. In the problem 010110000000000 + More, you would start by adding 0 + 0, then 0 + 0, and so on until you reach the last column.

What is the solution to the problem "010110000000000 + More"?

The solution to this problem is 0101100000000001. When adding binary numbers, if the sum of two 1's is 10, you carry over a 1 to the next column and leave a 0 in the current column. In this problem, the last column has two 1's, so you carry over a 1 to the next column and add a 0 in the current column. This results in a final sum of 0101100000000001.

Can binary numbers only be added in pairs?

No, binary numbers can be added in any combination, just like decimal numbers. For example, you can add three or more binary numbers together by adding the digits in each column and carrying over as needed. The same rules of carrying over apply, regardless of the number of binary numbers being added.

Is binary addition important in computer science?

Yes, binary addition is a fundamental concept in computer science. Computers use binary numbers to represent and process data, and binary addition is used to perform mathematical operations in computer programs. Understanding binary addition is essential for programming and understanding how computers work.

Back
Top