Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive


  • To: mathgroup at
  • Subject: [mg131733] BitAnd[True,False]
  • From: Alan <alan.isaac at>
  • Date: Wed, 25 Sep 2013 02:36:45 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

I'd hoped BitAnd would work on Boolean Lists so I gave it a try.  If it had simply failed completely I'd be disappointed but would understand.  But oddly, it half succeeds.  Why? BitOr fails the same way, and BitNot always fails.

I just want to understand these results.  I know there are ways to get the output I want.

Alan Isaac
(using Mathematica 9)

In[77]:= BooleanTable[{p,q,BitAnd[p,q]},{p,q}]//TableForm
True	True	True
True	False	BitAnd[False,True]
False	True	BitAnd[False,True]
False	False	False

  • Prev by Date: Re: Quantity
  • Next by Date: Re: a simple question
  • Previous by thread: Re: a queue
  • Next by thread: Re: BitAnd[True,False]