Maths: Logic

Logic, something every sane person should have

That is, with some exceptions (e.g. a certain English teacher)

Whether you don’t want to look like this girl:

dumbest-twitter-first-daughter-girl

Or be the next Spock:

jku5Z7Yxetxx

You want to know how logic works.

Lets watch Muselk for an example (skip to 3:50 if you want to speed it up, but watch from the start to watch the divine creation of the true xxX_MLG360noscope420blazeit#shrekt#uwotm8_Xxx powerdrink and some tf2 gameplay)

This is a great example of “if…then…” statements

In this case, Muselk dying is the condition and drinkinig the MLG powerdrink is the result

IF Muselk dies..

THEN Muselk has to drink the MLG powerdrink

“If… Then…” is the essential part of logic. It gives the relationship between 2 things, making them a condition and a result.

These logic statements can also be expressed in tables, called truth tables.

These are tables that list the possible true and false combinations of the conditions and match them with the result

In truth tables, 1 means true and 0 means false (because binary. More in this ICT lesson)

For example, the truth table of the above statement is:

Muselk dies Muselk has to drink the MLG powerdrink
1 1
0 0

You can see that when Muselk dies, he has to drink the MLG powerdrink.

An if he doesn’t, he does not need to drink the MLG powerdrink.

Another property of “If… Then…” statements are that  if A is true then B is true and B is true then C is true, then if A is true then C is true.

This might be a bit convincing, so here’s something powerful (at least that’s what it smells like) to explain

In this case, the first condition is your man using old spice and the result is smelling like that guy

IF Your man uses old spice

THEN Your man will smell like that guy

In the second part, the result of the first part becomes the condition and making anything possible is the result.

IF Your man smells like that guy

THEN Anything is possible

Since we have concluded that your man will smell like that guy in the first part, then anything should also be possible

Therefore:

IF your man uses old spice

THEN anything is possible

The truth tables for the above statement is this:

Your man uses old spice Your man smells like that guy
1 1
0 0
Your man smells like that guy Anything is possible
1 1
0 0
Your man uses old spice Anything is possible
1 1
0 0

There are 3 other essential statements which concern multiple conditions and results

…AND…

The “and” statement means all conditions have to be true to get the result

If only some or no conditions are true then the result will be false

This can be seen with President Obama and Zach Galifanakas

In this case, being short, fat and smelling like doritos are the conditions and it being hard to get into Hollywood is the result.

Zach states that

IF You are short

AND You are fat

AND You smell like doritos

THEN It would be hard to make it into Hollywood

The truth table:

You are short You are fat You smell like doritos It would be hard to make it into Hollywood
1 1 1 1
1 1 0 0
1 0 1 0
0 1 1 0
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 0

…OR…

The “or” statement means that if any 1 or more of the mentioned conditions are true then the result will be true

Only if all of the conditions are false then the result will be false

This will be explained by Mark Whalberg and his childhood friend:

In this case, the condition is John calling the right white trash name and the result is him hitting it

IF the girl Ted met is called

Mandy OR

Marilyn OR

Brittney OR

Tiffany OR

Candace OR

Brandy OR

Heather OR

Channing OR

Brianna OR

Amber OR

Serena OR

Melody OR

Dakota OR

Sierra OR

Bambi OR

Crystal OR

Samantha OR

Autumn OR

Ruby OR

Taylor OR

Tara OR

Tammy OR

Lauren OR

Charlene OR

Chantelle OR

Courtney OR

Misty OR

Jenny OR

Krista OR

Mindy OR

Noel OR

Shelby OR

Trina OR

Reba OR

Cassandra OR

Nikki OR

Kelsey OR

Shawna OR

Jolene OR

Urleen OR

Claudia OR

Savannah OR

Casey OR

Dolly OR

Kendra OR

Kylie OR

Chloe OR

Devon OR

Emmalou

THEN John hits it

Now, the condition is that John hits it and the result is Ted will fuckin’ buzz it

IF John hits it

THEN Ted fuckin’ buzzes it

The truth table:

The girls name is Mandy The girls name is Marilyn The rest of the names John hits it
1 1 1 1
0 1 1 1
1 0 1 1
1 1 0 1
0 0 1 1
0 1 0 1
1 0 0 1
0 0 0 0
John hits it Ted fuckin’ buzzes it
1 1
0 0

…NOT…

The “not” statement reverses the conditions, meaning if the condition is not true, then the result is true

If the condition is true, the result is not true

This will be explained by John Oliver and Australia’s favorite baby-eating animal: (skip to 2:42 if you like)

In this case, the condition is Tom Wheeler getting a zoologist’s proof that he is not a 100% talking dingo and the result is Americans refusing to leave him alone in rooms with their babies.

IF Tom Wheeler does

NOT get a zoologist’s proof that he is not a 100% talking dingo

THEN Americans will refuse to leave him alone in rooms with their babies

The truth table:

Tom Wheeler gets a zoologist’s proof that he is not a 100% talking dingo Americans will refuse to leave him alone in rooms with their babies
1 0
0 1

When the “not” statement is used to reverse conditions that already use “and” or “or”, the statement will be called “NAND” or “NOR” respectively.

These can be seen by adding the “not” statement to the “and” and “or” examples before.

For example, in Zach’s case:

IF You are

NOT short

NAND fat

NAND smell like doritos

THEN It will be easy to make it into Hollywood

The truth table:

You are short You are fat You smell like doritos It would be easy to make it into Hollywood
0 0 0 1
1 0 0 1
1 0 1 1
0 1 1 1
1 0 0 1
0 1 0 1
0 0 1 1
0 0 0 0

And that’s logic for you.

So thank me, and remember, notes are for the weak.

Click here to go to the problems.

Click here for the next lesson on sets

Click here to go back to the maths menu

Click here to go back to the Homepage

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s