Just wanted to check if my working is correct
Attachments

76.2 KB Views: 22
Thanks for your advice. However all day I've been thinking of how I would create a truth table for the first equationHere's an idea, RRittesh: Instead of always asking people to tell you if your "working is correct," how about making at least some effort to check your own work first?
You have an equation with three variables. That's only eight possible combinations. So make a truth table for the original equation and one for the final equation and compare them.
If you don't know how to create a truth table, then you need to step back to basics before you even attempt to work problems like this.Thanks for your advice. However all day I've been thinking of how I would create a truth table for the first equation
Hi,And to make that program even more affective, any time that the two don't match print out the variables and what the result of each equation was so that you can verify that each is correct (you may have a bug in one of your functions) and, if they are, get some hints as to what might be going wrong.
Ah, famous last words. I'll bet you've made the occasional typo and put x when it should have been y or something comparable.Hi,
The idea with the functions is to make them so simple that they almost cant be wrong. For example:
Hello,Ah, famous last words. I'll bet you've made the occasional typo and put x when it should have been y or something comparable.
But even if you never make this kind of mistake, the whole point of running the program is because you expect, at least occasionally, for the two functions being tested to end up not being the same. Why limit yourself to a, "Truth tables do not match," message when it would be so easy to actually get the information about which rows, specifically, don't match and which functions output which result?
If you don't know how to create a truth table, then you need to step back to basics before you even attempt to work problems like this.
Make truth tables for the following equations:
W = A + B
X = AB
Y = A' + B
Z = A'B
by Jake Hertz
by Luke James
by Gary Elinoff
by Gary Elinoff