Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Working with binaries

  • To: mathgroup at smc.vnet.net
  • Subject: [mg47993] Re: Working with binaries
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 5 May 2004 08:11:00 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <c77u1i$2rq$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

primitive low leve programming languages miss use 1 and 0
for boolean expressions True and False, but in Mathematica
you have to use True and False and !True gives False and
Not[True] gives also False.

Regards
  Jens


Luca wrote:
> 
> Is it possible with mathematica to work with binaries? I did it in another
> system by typing: OutputBase := Binary. I was also trying to find the function
> NOT, i.e. that function which gives:
> 
> !1 = 0
> !0 = 1
> 
> I found in the help BitNot, but BitNot[1] gives me -2.
> Thanks for any advice.
> 
> Luca


  • Prev by Date: Character code question
  • Next by Date: Nonlinear optimization with non-negativity constraints
  • Previous by thread: Re: Working with binaries
  • Next by thread: Re: Working with binaries