MHB Analysis. Fill in the F column values in the truth table for the circuit.

AI Thread Summary
The discussion revolves around filling in the F column values of a truth table for a circuit and checking the accuracy of the calculations. The initial response included a truth table with values for x, y, z, and their corresponding outputs for logical operations. A key point of confusion was the interpretation of the NAND operation, represented by the Sheffer stroke (x NAND y), which is defined as "not both" and is equivalent to the negation of the AND operation. Participants clarified that the correct approach to compute x NAND y involves first calculating the AND of x and y, then negating the result, rather than negating x and y individually before ANDing. This misunderstanding led to incorrect values in the truth table. The discussion concluded with a participant expressing gratitude for the detailed explanations and indicating they would rework their solution based on the clarified logic.
shamieh
Messages
538
Reaction score
0
Fill in the F column values in the truth table for the circuit.
Need someone to check my work.

View attachment 1444

My Answer:
  • x y z | f | x! and y! | x! XOR z|
  • 0 0 0| 0 | 1 | 1
  • 0 0 1| 1 | 1 | 0
  • 0 1 0| 1 | 0 | 1
  • 0 1 1| 0 | 0 | 0
  • 1 0 0| 0 | 0 | 0
  • 1 0 1| 1 | 0 | 1
  • 1 1 0| 1 | 1 | 0
  • 1 1 1| 0 | 1 | 1
 

Attachments

  • photo.JPG
    photo.JPG
    25.8 KB · Views: 97
Technology news on Phys.org
So, let's define the $\uparrow$ symbol as the Sheffer stroke, which corresponds to the NAND logic gate you have there. Then $f=(x \uparrow y) \oplus (x \oplus z)$. The truth table is then
$$
\begin{array}{c|c|c|c|c|c}
x &y &z &x \uparrow y &x \oplus z &(x \uparrow y) \oplus (x \oplus z) \\ \hline
0 &0 &0 &1 &0 &1 \\
0 &0 &1 &1 &1 &0 \\
0 &1 &0 &1 &0 &1 \\
0 &1 &1 &1 &1 &0 \\
1 &0 &0 &1 &1 &0 \\
1 &0 &1 &1 &0 &1 \\
1 &1 &0 &0 &1 &1 \\
1 &1 &1 &0 &0 &0
\end{array}
$$
 
Okay, I see where I went wrong. But you're saying x NAND y in the first row is 0 NAND 0 which is really 1 AND 1 = 1. I get that. Then you are saying in the 2nd row the same thing 0 NAND 0 = 1 because it's really 1 AND 1. Then in the 3rd row you are saying 0 NAND 1 which is really 1 AND 0 = 1. But how does that = 1? 1 AND 0 = 0. It only equals 1 if both are 1.
 
shamieh said:
Okay, I see where I went wrong. But you're saying x NAND y in the first row is 0 NAND 0 which is really 1 AND 1 = 1.

Actually not. The NAND operation means "not both". If I say $x \uparrow y$, or $x$ NAND $y$, that is equivalent to $\overline{xy}$. By DeMorgan, $ \overline{xy}= \bar{x}+ \bar{y}$, not $ \underbrace{\overline{xy}= \bar{x} \bar{y}}_{\text{Wrong!}}$.

I get that. Then you are saying in the 2nd row the same thing 0 NAND 0 = 1 because it's really 1 AND 1. Then in the 3rd row you are saying 0 NAND 1 which is really 1 AND 0 = 1. But how does that = 1? 1 AND 0 = 0. It only equals 1 if both are 1.

Again, this reasoning is flawed. If you need to, calculate NAND's like this: to compute $x \uparrow y$, first compute $xy$, and then negate the result. You cannot compute NAND's by negating the $x$ and $y$ first, and then AND'ing the results.
 
Ahh! I see! So DeMorgans law changes the ANDing of xy to OR, while negating the terms as well. x! + y! ok. Going to re-work it and make sure I get the correct solution. I'll be back (Wait)

- - - Updated - - -

Awsome, thank you for the detailed explanations. (Sun)
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
I am trying to run an .ipynb file and have installed Miniconda as well as created an environment as such -conda create -n <env_name> python=3.7 ipykernel jupyter I am assuming this is successful as I can activate this environment via the anaconda prompt and following command -conda activate <env_name> Then I downloaded and installed VS code and I am trying to edit an .ipynb file. I want to select a kernel, via VS Code but when I press the button on the upper right corner I am greeted...

Similar threads

Replies
9
Views
2K
Replies
4
Views
2K
Replies
1
Views
4K
Replies
1
Views
2K
Replies
2
Views
1K
Replies
34
Views
3K
Back
Top