MathGroup Archive 2012

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

Search the Archive

Re: Evaluation of boolean functions in Mathematica 8


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"] &



  • Prev by Date: Re: Mathematica as a New Approach to Teaching Maths
  • Next by Date: Re: Data Format
  • Previous by thread: Re: Evaluation of boolean functions in Mathematica 8
  • Next by thread: Re: Evaluation of boolean functions in Mathematica 8