Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11162

Re: Evaluation of boolean functions in Mathematica 8

From Daniel <dosadchy@its.jnj.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Evaluation of boolean functions in Mathematica 8
Date 2012-08-02 08:48 +0000
Message-ID <jvdes7$c0o$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Mathematica cannot guess that you meant for p,q,r to be variables. You should write:

g[p_, q_, r_] = BooleanConvert[And[p, q, r], "BFF"]

or even better (this would work for any number of variables):

g = BooleanConvert[And[##], "BFF"] &

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Evaluation of boolean functions in Mathematica 8 Daniel <dosadchy@its.jnj.com> - 2012-08-02 08:48 +0000

csiph-web