Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Conditionals for lookup table

9 views
Skip to first unread message

Mitonics

unread,
Jun 3, 2012, 5:01:48 AM6/3/12
to

I have a long list of conditions to program. I'd like guidance as to the
best or fastest way of doing this in Mathematica.

First I generate which initial conditions apply. Then I want to go to the
lookup table to see which action to take. Then I generate another set of
conditions and I want to lookup which action to take. and so on.

For example the concept for the lookup table will include various
permutations of conditions. Each permutation leads to a different action as
follows:

If Acondition1 and Bcondition1 are True, then do Action 1

If Acondition1 and Bcondition2 are True, then do Action 2

If Aconditon2 and Bcondition1 are True, then do Action 3

Etc.



There are perhaps 100 different Actions for what I'm trying to do.



Mike


0 new messages