home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky sci.math:17045 sci.math.num-analysis:3606 alt.uu.math.misc:21 ucb.math:13
- Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!csus.edu!netcom.com!suleman
- From: suleman@netcom.com (Dani Suleman)
- Newsgroups: sci.math,sci.math.num-analysis,alt.uu.math.misc,ucb.math
- Subject: Question about binary operators ??
- Message-ID: <1992Dec16.193214.23887@netcom.com>
- Date: 16 Dec 92 19:32:14 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 23
-
- Hi, I have a binary question here. I need to find what operation(s) to do
- such that when the source is (?) to the destination, if the source is all 1's,
- the result will be the destination value, else if the source is not all 1's,
- the result will be the source.
- e.g.
- 1111 ? 0111 = 0111 and 0101 ? 1110 = 0101
- ^ ^ ^--> result
- | +--> destination
- +--> source
-
- If it simplifies the question, you can also change the source to all 0's such
- that when the source is all 0's and is (?) to the destination, the result
- is the destination, and when the source is not all 0's, the result is the
- source.
- e.g.
- 0000 ? 1001 = 1001 and 1100 ? 0100 = 1100
-
- Any help/advice is DEEPLY appreciated !
-
- p.s., pls respond to my account if possible, I'll post a summary if there's
- any request.
-
- --dani
-