MathGroup Archive 2013

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

Search the Archive

BitAnd[True,False]


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.

Thanks,
Alan Isaac
(using Mathematica 9)

In[77]:= BooleanTable[{p,q,BitAnd[p,q]},{p,q}]//TableForm
Out[77]//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]