Loading ...
Sorry, an error occurred while loading the content.

14933Re: [PrimeNumbers] Re: Boolean algebra solver?

Expand Messages
  • David Cleaver
    Jun 2, 2004
    • 0 Attachment
      Milton Brown wrote:
      >
      > Sorry, what is the purpose of n1 = a1 ^ 1 and a1 = n1 ^ 1 ?
      > Aren't these just n1 = a1 and a1 = n1 ?

      No they are not. When he uses the ^ operator, he means the xor (exclusive
      or) operator. If you don't know about the xor operator, here's a quick
      tut:
      0^0 = 0
      0^1 = 1
      1^0 = 1
      1^1 = 0
      So, what n1 = a1 ^ 1 basically means is if a1 is 0 then n1 is 1, and vice
      versa. HTH.

      -David C.

      >
      > It would be helpful to explain these, or have your mathematics
      > thought out more before posting.
      >
      > Thanks.
      >
      > Milton L. Brown
    • Show all 13 messages in this topic