Complement: a number that when added

  • Thread starter Thread starter jackson6612
  • Start date Start date
AI Thread Summary
The term "complement" refers to a number that, when added to another number of the same sign, results in zero after discarding the leftmost significant digit. In base 10, for example, the complement of 3 is 7, as 3 + 7 equals 10, and removing the 1 leaves 0. This concept extends to binary numbers, where the complement of 1 is also 1, and the complement of 1010 is 0110. Using complements simplifies subtraction in computing, allowing for addition instead, which is more efficient for binary operations. Understanding complements is essential for programming and digital circuit design.
jackson6612
Messages
334
Reaction score
1
http://www.merriam-webster.com/dictionary/complement" (noun)
2 c : a number that when added to another number of the same sign yields zero if the significant digit farthest to the left is discarded —used especially in assembly language programming
[M-W's Col. Dic.]

Could you please tell me what this definition means? Please remember I'm not a math student.
 
Last edited by a moderator:
Mathematics news on Phys.org
jackson6612 said:
http://www.merriam-webster.com/dictionary/complement" (noun)
2 c : a number that when added to another number of the same sign yields zero if the significant digit farthest to the left is discarded —used especially in assembly language programming
[M-W's Col. Dic.]

Could you please tell me what this definition means? Please remember I'm not a math student.

Some examples:

In base 10, the compliment of 3 would be 7 because 3+7 = 10 and if you discard the 1, you are left with 0

Thus 4 is the compliment of 6, 8 of 2, etc.

The compliment of 55 would be 45, because 55+45=100 and removing the 1 leaves you with 0 again.

With binary, the compliment of 1 is 1 because 1+1 =10

The compliment of 1010 would be 0110 because 1010 + 0110 = 10000 in binary.

This is handy because compliments can be used for subtraction.
Say you want to subtract 3 from 7. you can do this by converting the 3 to its compliment(7) and add it to 7. This gives you 7+7=14. discard the 1 and you get 4. This is cumbersome with base ten, but works well with binary.

If you take 1010, and convert the 1s to 0s and the zeros to 1, you get 0101, if you then add 1 to this, you get 0110. This works for every binary number.

So it is very easy to convert to a binary compliment.

So for computers, it is simpler to convert to a compliment and add, rather than having a second circuit for subtraction.
 
Last edited by a moderator:
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top