Questions tagged [truthtable]

A truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, boolean functions, and propositional calculus—to compute the functional values of logical expressions on each of their functional arguments, that is, on each combination of values taken by their logical variables.

In particular, truth tables can be used to tell whether a propositional expression is true for all legitimate input values, that is, logically valid.

Practically, a truth table is composed of one column for each input variable (for example, A and B), and one final column for all of the possible results of the logical operation that the table is meant to represent (for example, A XOR B). Each row of the truth table therefore contains one possible configuration of the input variables (for instance, A=true B=false), and the result of the operation for those values.

210 questions
-1
votes
1 answer

Python truth tables

I am new to coding and taking a basic Python course online. The current section I'm on talks about truth tables with Boolean operators. I am following most of it, but there is one part that just doesn't make sense to me no matter how many times I go…
ShaneJ
  • 1
  • 1
-1
votes
1 answer

Dynamic Loops for Arrays

I want to create a TruthTable maker. So If I have some n variables I will have 2^n rows. With Each Statement conatining only zeros and ones. For example, Consider A^B. Possible values of A are [0, 1] and for B also [0, 1]. I want to apply AND for A…
Appaji Chintimi
  • 613
  • 2
  • 7
  • 19
-1
votes
1 answer

Truth tables, boolean expressions and circuits

I have created my truth table and drawn from this a boolean expression (f = B'A' + CA' + DC' + DB + D'CB') which I have then attempted to convert into a circuit using Quartus. I am new to digital logic and I need some help from someone wit…
-1
votes
1 answer

Excel 2013 - using boolean logical functions

click here for the image of my excel worksheet What is the formula for cell K3 (p=>q) => (p=>~q) . My goal is False, True, True, True. But i don't know the formula for it on excel. i've tried this formula =or(not(OR(NOT(B3);C3);OR(NOT(B3);NOT(C3)))…
-1
votes
1 answer

what is the truth table for this logic statement?

p∨q p →∼ q p → r ∴ r I need to construct a truth table for this but am not sure if this is correct any help is appreciated
-1
votes
4 answers

How to define exclusive disjunction with Guards Using Haskell

this code is to define the exclusive disjunction truth table in haskell Click here for more info on exclusive disjunction, XOR Code: -- truth table concept of logical XOR exclusiveDisjunction :: Bool -> Bool -> Bool exclusiveDisjunction = x y …
-1
votes
9 answers

Truth Table - Converting boolean value to 1 and 0

I am currently working through the work book, Java A Beginners Guide. Chapter 2 has a little project to create a truth table. The values that are displayed are in the format of true or false. The goal is to display 1's and 0's instead. I have…
Stephen Worrall
  • 47
  • 2
  • 10
-1
votes
1 answer

(LOGIC) Determine whether a statement is correct using truth-tables

I'm trying to study for my midterm and I need help figuring out what to do for this problem. It says: Determine whether the following statement is correct, using any legitimate truth-table technique. ~A ∨ (B → C), E → (B & A), C → E |= C ↔ A I…
o.o
  • 3,563
  • 9
  • 42
  • 71
-1
votes
2 answers

How are these boolean expressions (truth tables) equivalent?

I am trying to better understand boolean equivalence but this example has me a little stuck. I am referring to this website: http://chortle.ccsu.edu/java5/Notes/chap40B/ch40B_9.html It makes sense, but doesn't at the same time... it says that they…
-1
votes
2 answers

What are the x values for this circuit truthtable? ABC (3) inputs (Homework)

I usually try not ask for homework help but once again I am stuck. I've been going over and over my textbook but I am not able to figure this out. Emailed the instructor and all the help i get is "Check this page" and "check that page", so instead…
YourFriend
  • 410
  • 1
  • 5
  • 13
-1
votes
1 answer

Generate a truth-table in Scheme

The specification is given below: (truth-table formula) --> truth-table A formula is: a truth value i.e. either #t or #f a variable i.e p, q, r, ... (not formula) (and formula1 formula2) (or formula1 formula2) A truth-table is set of rows. A row…
user878944
  • 11
  • 4
-2
votes
1 answer

Need some guidance with a logic circuit im building

Ive a school project of building a logic circuit that counts the number of objects that passes through a checkout belt using 2 sensors. Thing is: Tried to find something similar online (no luck) and I dont know how can I integrate those sensors…
-2
votes
1 answer

What the meaning of AB+C?

I want to know that what is the truth table and logic circuit gate for following Boolean expression. (A+B).(AB+C) I have a doubt in what the meaning of AB+C please, I want some help to get through this. It's important to my ICT examination.
-2
votes
1 answer

Clarification on why this code is resulting in false and not true

The following code results in false. Could anyone explain to me why? I am having some trouble understanding using truth tables. I am a beginner with java, thank you in advance for the help. boolean x = false; boolean y = true; boolean z =…
jane d
  • 1
  • 2
-2
votes
1 answer

How do I write a program to show the truth table for the NAND gate in python 2.7.15

How do I write a program to show the truth table for the NAND gate
1 2 3
13
14