Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Bit operations for beginners

by wagemonkey (Initiate)
on Feb 04, 2005 at 17:37 UTC ( #428141=note: print w/replies, xml ) Need Help??


in reply to Bit operations for beginners

You have defined XOR as (a&b) | (~a&~b) , surely this is the inverse of XOR ( the biconditional).
Shouldn't XOR be defined as  (a&~b) | (~a&b)?

Replies are listed 'Best First'.
Re^2: Bit operations for beginners
by Cine (Friar) on Jun 19, 2005 at 11:57 UTC
    Indeed, corrected


    T I M T O W T D I

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://428141]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-11-22 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (312 votes). Check out past polls.

    Notices?