MathGroup Archive 2003

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

Search the Archive

Re: Is it doable in Mathematica? How?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39720] Re: [mg39704] Is it doable in Mathematica? How?
  • From: BobHanlon at aol.com
  • Date: Mon, 3 Mar 2003 23:49:01 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 3/3/03 5:20:30 AM, chamsterkonrad at bigfoot.com writes:


> I'd like to create a truth table for, say, A, B and C, as
> well as two different expression, say, A&&B&&C and
> (A||B) -> C. How do i go about that?
> 
> I have tried Table, but since True/False are not allowed
> there i got stuck. The help in Mathematica was of little
> help in this case. Any hints or suggestions?
> 

a=b=c={True, False};



TableForm[Partition[Flatten[Table[

         {a[[n]], b[[m]], c[[k]], a[[n]]&&b[[m]]&&c[[k]],
 
           Implies[a[[n]]||b[[m]], c[[k]]]},
 
         {n, 2}, {m, 2}, {k, 2}]], 5],
 
   TableHeadings->{None, {"A", "B","C","A&&B&&C","A||B\[Implies]C"}}]



Bob Hanlon



  • Prev by Date: Sum sintaxis
  • Next by Date: Message while printing
  • Previous by thread: Re: Is it doable in Mathematica? How?
  • Next by thread: Re: Is it doable in Mathematica? How?