home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / sci / math / 17045 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.3 KB

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