Skip to content

shecodes-content/logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logic

A single bit can represent a number of things. For example, it can indicate whether a switch is in the on or off position, whether a particular dot on a screen is black or white, or whether a statement like "It is currently raining" is true or false.

This last example – representing the truthfulness of a statement with a single bit – is what logic is all about. Learn about the fundamentals of logic from this video.

Introduction to logic and truth tables

Question 1. What is the negation of the statement:

"If I have enough time, I will become an awesome programmer" In logic the two possible states are called 'true' and 'false' and the operator that combines two statements into a compound statement is called 'connective'. There is one unary connective (the negation), and two binary connectives (and, or). It is important to stress that the word 'binary' refers to the number of statements that are combined. A binary connective combines TWO statements, hence it is called BINARY. The negation connective, in contrast, is just dealing with ONE statement, hence it is called UNARY. (so, the 'binary' in 'binary connective' and the binary in 'binary digit' mean different things!) Wikipedia

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors