MathGroup Archive 2013

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

Search the Archive

BitAnd[True,False]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131733] BitAnd[True,False]
  • From: Alan <alan.isaac at gmail.com>
  • Date: Wed, 25 Sep 2013 02:36:45 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

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]