Logic problem: need better logic for desired thruth table.

Steven D'Aprano steve at pearwood.info
Fri May 29 02:00:00 EDT 2015


On Fri, 29 May 2015 01:49 pm, Skybuck Flying wrote:

> wrote in message
> news:mailman.152.1432869623.5151.python-list at python.org...
> 
> On Thu, May 28, 2015, at 17:50, Skybuck Flying wrote:
>> Surpisingly enough I don't think there is a casual/common operator for
>> this
>> thruth table.
>>
>> AND does not apply.
>> OR does not apply.
>> XOR does not apply.
> 
> "
> All sixteen possible logical operators have formal names. This one is
> called "B implies A". It can be implemented, as others have mentioned
> with "A or not B".
> "
> 
> Ok thanks for this information.
> 
> I was just wondering how many thruth table combinations there can be for a
> typical thruth table with 2 inputs and 1 output.

The word is TRUTH not THRUTH. I don't know if you're a native English
speaker, but "thruth" sounds like the name of a bird (thrush) spoken with a
lisp.

> Since there are 2 inputs, this means 4 possible outputs, which means 2 to
> the power of 4 different thruth tables possible, which is indeed 16.
> 
> Perhaps you have a link to all possible 16 thruth tables and their formal
> names ? That would help !

http://en.wikipedia.org/wiki/Truth_table




-- 
Steven




More information about the Python-list mailing list