ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Mathematics
    MATH2113
    Progress0 / 25 topics
    Topics
    1. Mathematical Reasoning: Sets, Subsets, Algebra of Sets2. Propositions and Compound Statements3. Basic Logical Operations4. Propositional Logic and its Applications with Statement Problems5. Propositions and Truth Tables6. Tautologies and Contradictions7. Conditional and Bi-conditional Statements8. Arguments in Propositional Logic9. Propositional Functions10. Quantifiers and Negation of Quantified Statements11. Relations and Equivalence Relations12. Partial Ordering Relations13. Functions and Recursively Defined Functions14. Combinatorics: Basics of Counting Methods15. Combinations and Permutations16. Pigeonhole Principle17. Graphs and its Types18. Graph Isomorphism19. Trees in Graph Theory20. Connectivity in Graphs21. Eulerian and Hamiltonian Paths22. Spanning Trees and Shortest Path Problem23. Revisiting Special Functions: Power, Floor, Increasing, Decreasing24. Big O, Little O and Omega Notations25. Orders of the Polynomial Functions
    MATH2113›Basic Logical Operations
    Discrete MathematicsTopic 3 of 25

    Basic Logical Operations

    3 minread
    544words
    Beginnerlevel

    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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count544
      Code examples0
      DifficultyBeginner