|
[Date Index]
[Thread Index]
[Author Index]
Re: Evaluation of boolean functions in Mathematica 8
- To: mathgroup at smc.vnet.net
- Subject: [mg127519] Re: Evaluation of boolean functions in Mathematica 8
- From: Daniel <dosadchy at its.jnj.com>
- Date: Thu, 2 Aug 2012 04:46:41 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
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
|