Results 1 to 3 of 3

Math Help - [SOLVED] bit operations...need some help

  1. #1
    Member
    Joined
    Feb 2009
    Posts
    92

    [SOLVED] bit operations...need some help

    Im reading the two paragraphs that my book covers and it isnt making any sense at all!

    I need to evaluate the following expression:
    100110 AND (011111 XOR 101011)

    The book says that 0=f and 1=t.

    Can someone please explain this?! I tried following the only example and it doesn't show steps or an explaination.

    It says:
    Find the bitwise OR, AND, and XOR of the bit strings 01 1011 0110 and
    11 0001 1101.

    OR = 11 1011 1111
    AND = 01 0001 0100
    XOR = 10 1010 1011
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,962
    Thanks
    1784
    Awards
    1
    Compare the two strings bit by bit (position by position).
    For ‘OR’: if either bit is a 1 then the ‘new’ bit is a 1, otherwise it is 0.
    For ‘AND’: if both bits are a 1 then the ‘new’ bit is a 1, otherwise it is 0.
    For ‘XOR’: if either bit is a 1 but not both then the ‘new’ bit is a 1, otherwise it is 0.

    In the example, I suggest that you stack the strings to compare them.
    01 1011 0110
    11 0001 1101

    OR = 11 1011 1111
    AND = 01 0001 0100
    XOR = 10 1010 1011
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Feb 2009
    Posts
    92
    I get that part now, but throwing in the & and the # are throwing me off big time! dDo I stack them too?

    011 111
    101 011
    ---------
    110 100
    100 110
    100 100

    Is that remotely close?
    Last edited by ninobrn99; April 18th 2009 at 06:41 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. [SOLVED] Operations with ideals in a ring.
    Posted in the Advanced Algebra Forum
    Replies: 7
    Last Post: May 19th 2010, 10:16 AM
  2. [SOLVED] Binary Operations
    Posted in the Discrete Math Forum
    Replies: 6
    Last Post: May 10th 2010, 04:17 PM
  3. [SOLVED] Matrix Operations
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: February 14th 2010, 08:30 AM
  4. [SOLVED] Graph operations ??
    Posted in the Discrete Math Forum
    Replies: 2
    Last Post: July 6th 2009, 05:20 AM
  5. [SOLVED] Precalculus: operations on functions
    Posted in the Pre-Calculus Forum
    Replies: 2
    Last Post: February 22nd 2009, 03:59 PM

Search Tags


/mathhelpforum @mathhelpforum