ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalMATH2113Basic Logical Operatio…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    MATH2113

    Discrete Mathematics

    Progress0 / 25 done
    Topics25
    1Sets, Subsets, Algebra of Sets2Propositions and Compound Statements3Basic Logical Operations4Propositional Logic and its Applications with Statement Problems5Propositions and Truth Tables6Tautologies and Contradictions7Conditional and Bi-conditional Statements8Arguments in Propositional Logic9Propositional Functions10Quantifiers and Negation of Quantified Statements11Relations and Equivalence Relations12Partial Ordering Relations13Functions and Recursively Defined Functions
    14Basics of Counting Methods15Combinations and Permutations16Pigeonhole Principle17Graphs and its Types18Graph Isomorphism19Trees in Graph Theory20Connectivity in Graphs21Eulerian and Hamiltonian Paths22Spanning Trees and Shortest Path Problem
    23Power, Floor, Increasing, Decreasing24Big O, Little O and Omega Notations25Orders of the Polynomial Functions
    3 min read
    Topic 3 of 25
    Topic Study Note Illustration
    03

    Basic Logical Operations

    Basic Logical Operations


    Basic Logical Operations


    Logical operations are used to form new propositions by combining or modifying existing ones. These operations are fundamental in reasoning, computer science, and digital logic.


    1. Negation (NOT)

    The negation of a proposition ppp, written as ¬p\neg p¬p, is true when ppp is false, and false when ppp is true. It simply reverses the truth value.

    p ¬p
    T F
    F T

    Example:
    Let ppp: "It is raining."
    Then ¬p\neg p¬p: "It is not raining."


    2. Conjunction (AND)

    The conjunction of two propositions ppp and qqq, written p∧qp \land qp∧q, is true only when both ppp and qqq are true.

    p q p ∧ q
    T T T
    T F F
    F T F
    F F F

    Example:
    ppp: "It is sunny."
    qqq: "It is warm."
    p∧qp \land qp∧q: "It is sunny and warm."


    3. Disjunction (OR)

    The disjunction p∨qp \lor qp∨q is true if at least one of ppp or qqq is true. This is the inclusive OR.

    p q p ∨ q
    T T T
    T F T
    F T T
    F F F

    Example:
    ppp: "I will study."
    qqq: "I will play."
    p∨qp \lor qp∨q: "I will study or play (or both)."


    4. Exclusive OR (XOR)

    The exclusive OR p⊕qp \oplus qp⊕q is true if exactly one of ppp or qqq is true, but not both.

    p q p ⊕ q
    T T F
    T F T
    F T T
    F F F

    Example:
    Two switches controlling a light—only one switch can be ON at a time for the light to be ON.


    5. Implication (IF...THEN)

    The implication p→qp \rightarrow qp→q means "if ppp, then qqq." It is false only when ppp is true and qqq is false.

    p q p → q
    T T T
    T F F
    F T T
    F F T

    Example:
    ppp: "It rains."
    qqq: "The ground gets wet."
    "If it rains, then the ground gets wet."

    Even if it doesn’t rain (p is false), the implication is still considered true, regardless of whether the ground gets wet or not.


    6. Biconditional (IF AND ONLY IF)

    The biconditional p↔qp \leftrightarrow qp↔q is true when both ppp and qqq are either true or false (i.e., have the same truth value).

    p q p ↔ q
    T T T
    T F F
    F T F
    F F T

    Example:
    ppp: "You can vote."
    qqq: "You are 18 or older."
    "You can vote if and only if you are 18 or older."


    These operations form the foundation for logical arguments, digital circuits, and programming decision-making.

    ← Previous topic 2
    Propositions and Compound Statements
    Next topic 4 →
    Propositional Logic and its Applications with Statement Problems

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    3mremaining
    544words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Mathematics