Computer Subtraction: Can Computers Subtract?

  • Thread starter Thread starter skywolf
  • Start date Start date
  • Tags Tags
    Computer
AI Thread Summary
Computers can perform subtraction by using addition through the method of 2's complement, which simplifies the circuitry needed for calculations. Mathematically, subtraction can be expressed as addition of a negative, making the operations fundamentally similar. This approach allows computers to handle both signed and unsigned numbers efficiently. While subtraction in binary is not inherently more complex than addition, the use of complements streamlines the process. The same principle applies to decimal numbers, although it is less straightforward than in binary.
skywolf
Messages
81
Reaction score
0
why can't a computer subtract, or can it, and its just easier to do it by adding?
 
Engineering news on Phys.org
In the mathematical point of view, adding or subtracting are the same operation, i.e,

A - B = A + (-B)

That is a reason why computer science concern about signed and unsigned numbers. :smile:
 
Its not that it is any more difficult to subtract in binary than to add --- just simply the fact that we don't need to build two sets of circuits, when one set can do both functions by simply using complement operation. By the way, the same can be done with decimal numbers, its just not quite as easy as with binary.

KM
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top