I never learn so much by a single video and related articles. And I never commented a video on UA-cam but you deserved it. Thank you very much for share your knowledege with your magic comunication skills!
discrete math haunts me once again... those laws on booleans have brought back repressed memories. but in all seriousness thank you for the tutorials. they're very comprehensive and i appreciate that a lot
Yep.... deffinately going to do another watch on the boolean equivalency. I get the idea just had a hard time catching up hearing different variations of A or B and A And B. That's just my scattered brain though. Great vid!
Will def need to rewatch this one a few times to get the hang of it! Got a little overwhelmed during the breakdown of boolean equivalency - MY FAULT FOR GETTING OVERWHELMED NOTHING YOUVE DONE SAM! - It by and large made sense once I started to write down and work through it on paper but during the video I couldn't quite keep up (cause I am slow witted) towards the end. I need to make some real world examples in a project to get a better grip on it I think.
@@SamSpadeGameDev yes I've messed with a few of them, I was just wondering how someone might start something like this within gamemaker. I can't seem to find any examples for gml.
"!(A and B) = !A or !B" How are these the same? Let's say: A = Raining = True B = Sprinklers ON = True !(A and B) = Not raining and Not Sprinklers ON = grass NOT wet. !A or !B = Not raining OR Not Sprinklers On = grass wet - unless both true. What am i missing? Someone help. If "!A (not raining) = true" But "!B (sprinklers OFF) = false" Grass Wet = true
not (A and B) means either not A, not B, or neither A nor B. Simply that it isn't both A and B. So not A or not B is the same because it could be A but not B, B but not A, or neither A nor B.
One thing you're missing: !(A and B) ≠ Not raining and Not Sprinklers ON What you started with is correct: !(A and B) = !A or !B Note the differences: !(A and B) = !A or !B !A or !B = not raining OR not sprinkling not raining AND not sprinkling ≠ not raining OR not sprinkling !A and !B ≠ !A or !B !(A and B) ≠ !A and !B !(A and B) ≠ not raining AND not sprinkling Like Jaspovideos said, What is (A and B)? It is that both A and B are true. What is (A or B)? It is that either A or B is true. What is (!A or !B)? It is that either not-A is true or not-B is true. What is !(A and B)? It is that not-(A and B) is true. In other words, it is that (A and B) is false. How do you get (A and B) to be false? Either A or B (or both) must be false. If only A is true, then it's false. If only B is true, then it's false. If (A and B) is false, then yay, not-(A and B) is true. The problem in your example is that you started with, if (not Raining and not Sprinkling) then grass not wet aka if (!A and !B) ... which ≠ (!A or !B) To make your example valid, let's change B altogether: A = Raining = True B = Grass is in the Open Air Outside = True Now, if it's Raining AND the Grass is in the Open Air Outside, then the Grass gets Wet aka if (A and B), then Wet if Rain (A) and OpenAir (B), then Wet if Rain (A) but under a roof (!B), then not Wet if no Rain (!A) yet in OpenAir (B), then still not Wet if no Rain (!A) and under a roof (!B), then definitely not Wet Only if Rain and OpenAir will it be Wet. Only (A and B) returns True. if !(A and B) then not Wet Wet !(A and B) -> not Wet !A or !B -> not Wet !(A and B) = (!A or !B)
I never learn so much by a single video and related articles. And I never commented a video on UA-cam but you deserved it. Thank you very much for share your knowledege with your magic comunication skills!
discrete math haunts me once again... those laws on booleans have brought back repressed memories. but in all seriousness thank you for the tutorials. they're very comprehensive and i appreciate that a lot
Yep.... deffinately going to do another watch on the boolean equivalency. I get the idea just had a hard time catching up hearing different variations of A or B and A And B. That's just my scattered brain though. Great vid!
Will def need to rewatch this one a few times to get the hang of it! Got a little overwhelmed during the breakdown of boolean equivalency - MY FAULT FOR GETTING OVERWHELMED NOTHING YOUVE DONE SAM! - It by and large made sense once I started to write down and work through it on paper but during the video I couldn't quite keep up (cause I am slow witted) towards the end. I need to make some real world examples in a project to get a better grip on it I think.
Could you do a tutorial on a digital logic simulator? Like a logic gate circuit sim?
These already exist! Here's one: logic.ly/demo
@@SamSpadeGameDev yes I've messed with a few of them, I was just wondering how someone might start something like this within gamemaker. I can't seem to find any examples for gml.
"!(A and B) = !A or !B" How are these the same?
Let's say:
A = Raining = True
B = Sprinklers ON = True
!(A and B) = Not raining and Not Sprinklers ON = grass NOT wet.
!A or !B = Not raining OR Not Sprinklers On = grass wet - unless both true.
What am i missing? Someone help.
If "!A (not raining) = true" But
"!B (sprinklers OFF) = false"
Grass Wet = true
not (A and B) means either not A, not B, or neither A nor B. Simply that it isn't both A and B.
So not A or not B is the same because it could be A but not B, B but not A, or neither A nor B.
One thing you're missing:
!(A and B) ≠ Not raining and Not Sprinklers ON
What you started with is correct:
!(A and B) = !A or !B
Note the differences:
!(A and B) = !A or !B
!A or !B = not raining OR not sprinkling
not raining AND not sprinkling ≠ not raining OR not sprinkling
!A and !B ≠ !A or !B
!(A and B) ≠ !A and !B
!(A and B) ≠ not raining AND not sprinkling
Like Jaspovideos said,
What is (A and B)? It is that both A and B are true.
What is (A or B)? It is that either A or B is true.
What is (!A or !B)? It is that either not-A is true or not-B is true.
What is !(A and B)? It is that not-(A and B) is true. In other words, it is that (A and B) is false. How do you get (A and B) to be false? Either A or B (or both) must be false. If only A is true, then it's false. If only B is true, then it's false. If (A and B) is false, then yay, not-(A and B) is true.
The problem in your example is that you started with,
if (not Raining and not Sprinkling) then grass not wet
aka
if (!A and !B) ... which ≠ (!A or !B)
To make your example valid, let's change B altogether:
A = Raining = True
B = Grass is in the Open Air Outside = True
Now, if it's Raining AND the Grass is in the Open Air Outside, then the Grass gets Wet
aka
if (A and B), then Wet
if Rain (A) and OpenAir (B), then Wet
if Rain (A) but under a roof (!B), then not Wet
if no Rain (!A) yet in OpenAir (B), then still not Wet
if no Rain (!A) and under a roof (!B), then definitely not Wet
Only if Rain and OpenAir will it be Wet. Only (A and B) returns True.
if !(A and B) then not Wet Wet
!(A and B) -> not Wet
!A or !B -> not Wet
!(A and B) = (!A or !B)
Oh, sorry, I answered before watching the video. Now I see he uses raining and sprinkling. I'll review and then state whatever's needed. $¦^ J
@@Jaspovideos Sorry for the late reply, but i think i understand it now. Thanks
@@ParodyKnaveBob Thank you!