computer subtraction


by skywolf
Tags: subtraction
skywolf
skywolf is offline
#1
Sep22-06, 11:41 PM
P: 80
why cant a computer subtract, or can it, and its just easier to do it by adding?
Phys.Org News Partner Engineering news on Phys.org
Fiber-optic microscope will help physicians detect cancer, diseases at early stages
Wind tunnel tests support improved aerodynamic design of B61-12 bomb
Smart sensor technology to combat indoor air pollution
jbusc
jbusc is offline
#2
Sep22-06, 11:57 PM
P: 212
Thanks to 2's complement, computers actually do subtraction by doing addition. See http://en.wikipedia.org/wiki/2%27s_complement
sci-3d
sci-3d is offline
#3
Sep24-06, 09:40 PM
P: 6
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.

Kenneth Mann
Kenneth Mann is offline
#4
Oct1-06, 07:50 PM
P: 410

computer subtraction


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


Register to reply

Related Discussions
'difference' and subtraction General Math 20
more vector help (subtraction) Introductory Physics Homework 5
Properties of subtraction? General Math 4
Vector Subtraction Precalculus Mathematics Homework 4
Confusing subtraction Linear & Abstract Algebra 3