Obtain Binary String: X + Y - Z | Binary Addition and Subtraction Rules

  • Thread starter Thread starter rclakmal
  • Start date Start date
  • Tags Tags
    Binary String
AI Thread Summary
To obtain binary strings P and Q from the given values X=10111, Y=101, and Z=1001, the binary addition of X and Y results in P=11100. The rules for binary addition include carrying over when both bits are 1. For Q, which is P-Z, the binary subtraction yields Q=10111. The participant expresses uncertainty about the application of rules but confirms the basic addition and subtraction principles. The final results are P=11100 and Q=10111, demonstrating the correct application of binary operations.
rclakmal
Messages
76
Reaction score
0
Obtain Binary String ?

Homework Statement



Given That X=10111 ,Y=101; Z=1001, obtain binary strings that represent P Q where
P=X+Y and Q=P-Z; state clearly each rule you apply .

Homework Equations





The Attempt at a Solution



Hey up to the extent which i know i did this as a normal binary addition and subtractions >then i got P=10010
and Q=1001 .But the problem is I am not sure that i have used any kind of rules here. or Have I ?? Or did i made a mistake in interpreting the problem .Can somebody help . this is all u got for that question ,i have included all the details.
 
Physics news on Phys.org


Doing binary addition, I get a different result for P. The addition rules in binary are:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10

I can't think of any rules other than these.

So for X + Y you have
10111
+ 101
-----
11100
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top