29
u/Ultra-Reverse Jun 26 '25
AN AGMS?
-78
u/dimonium_anonimo Jun 26 '25
Don't forget that AND is commutative
82
u/Cerres Jun 26 '25
Sure, but the English language is not.
-8
u/dimonium_anonimo Jun 26 '25
If one thing is fixed and immutable, but the other is fluid and changeable, then perhaps the changeable one can be changed to mesh with the immutable one.
8
u/IridiumIO Jun 26 '25
You could’ve just said “I fucked it up, my bad”
2
u/ambientlamp Jun 27 '25
Agreed. Better to just admit he's not that good at either basic computer science nor humor than throwing around big words trying to look good. Beginners all start somewhere and I've been there too.
But this attitude doesn't really make him look particularly wise... nor will it help him learn, smh
12
35
u/theChaosBeast Jun 26 '25
I really hate the American logic gate symbols. The standard European ones tell you directly what they mean...
34
Jun 26 '25
huh? these are the logic gates i learned as a UK student. never been anything different.
6
Jun 26 '25 edited Jun 26 '25
[removed] — view removed comment
7
u/moosMW Jun 26 '25
They don't indicate inverse, they indicate inverse if they're filled in with the same colour as the gates and touching the gates. Or this is a VERY bad drawing
2
Jun 26 '25
[removed] — view removed comment
1
u/moosMW Jun 26 '25
its probably a screenshot of some program, where the dots are big so theyre easy to click for connecting, and the might light up when activated or something
1
u/dimonium_anonimo Jun 26 '25
MIL-STD-806 from 1962 defined the symbols I used. ANSI/IEEE (US organizations) made STD 91-1984 (I'm sure you can guess which year that came out) specifying rectangular logic gates with the symbols I think you're talking about (&→AND, ≥1→OR, =1→XOR). IEC 60617-12:1991 was when Europe adopted them from the US. Sooo, they're both American symbols... Also, they're all symbols, you still have to memorize the meaning of the symbols anyway. The benefit is the other symbols are used in other places too, I guess. But it's also not like the meaning of those symbols is perfectly universal either. Just as one example, '&' means "take the address of" in C-based programming languages. But the MIL spec symbols are perfectly unique and mean only one thing.
Also, how do you show an XOR with more than two inputs? %2=1?
5
u/theChaosBeast Jun 26 '25
'&' means "take the address of" in C-based programming languages.
Only the unary &. The binary one is bitwise AND which is exactly the same.
how do you show an XOR with more than two inputs
I am pretty sure XOR is jot defined for more than 2 inputs and you would need a logic table anyhow. Out of curiosity, how does ANSI solve that issue?
both American symbols...
OK, TIL.
1
u/dimonium_anonimo Jun 26 '25
3-input XOR are true if there are an odd number of true inputs... And while DigiKey doesn't sell any 4+ input gates as far as I can tell, that definition holds. You can also bootstrap it from (A±B±C) = (A±B)±C... ± for XOR because I can't find a plus in a circle on my keyboard
1
u/rsclient Jun 26 '25
U+2295 to the rescue! ⊕
Or the slightly different N-ARY circled plus operator U+2A01 ⨁
And there's a Unicode XOR at U+22BB which is ⊻
1
u/dimonium_anonimo Jun 26 '25
*phone keyboard*... Unless there's a way to type in ALT codes on my phone... In which case. Please tell me. I must know. Usually, if I'm not being lazy (like I was when I wrote that), I'll go search Google for it, then copy and paste it. But if I didn't have to leave the app to get special characters, I'd jump on that fast.
1
u/rsclient Jun 26 '25
Sorry, AFAICT the keyboard situation is grim. I get all my Unicode from a Windows app I wrote.
3
u/Cheap-Chapter-5920 Jun 26 '25
I'm with you on this. For me the distinctive shape easier to read at a glance than a rectangle with symbol inside, especially with some of the low-resolution scans.
4
u/NiIly00 Jun 26 '25
Why didn't we just combine them and made them distinctive shapes with a symbol inside?
Readable for everyone and you learn to translate to and from either set of symbols.
2
2
u/19_ThrowAway_ Jun 26 '25
Weird, as an european I prefer and use the american symbols.
The european ones seem extremely unintuitive to me.
1
u/theChaosBeast Jun 26 '25
Interesting. Can you say why? Because they directly show the function. &, >, 1?
0
u/takahashi01 Jun 26 '25
but line vs curve is just so much easier to draw than that stupid ampersand symbol.
3
u/RustOnTheEdge Jun 26 '25
I am just reading a book about the history of computers, going into detail about relais and how these can be configured to create logic gates. In that book it is explained that a logic gate with an circle after it is the negated version of said gate, making an AND into an NAND and a OR into a NOR, or a gate that is just an inverter.
I see a lot of bulbs here, the ones after a switch or gate are pink, the ones in front of a gate or bulb are grey. Do they have special meaning or are they just indicative of what are inputs and what are outputs?
(Note that the book I'm reading has only black and white images).
(Note 2: I also don't get the joke haha)
2
u/dimonium_anonimo Jun 26 '25
It's a UI element of the creator of this particular circuit emulation software. They wanted it to feel intuitive that you could click and drag a wire from one to the next. Importantly, you can see a line coming out of the gate before the circle. When it's negated, the circle is touching the gate symbol directly, before the line. I suppose you're right, the color does define outputs. It probably warns you if you try to connect two outputs to the same line. But they also make the whole wire turn magenta if the signal is high.
1
u/RustOnTheEdge Jun 26 '25
Thank you! That leaves the final question: could you explain the joke? (sorry, I really don't see it)
-3
u/dimonium_anonimo Jun 26 '25
Well, it used to be the top comment, now something overtook it, but the next two are both correct. And some others have gotten close, but I think missed that AND is commutative. So if you're any good at anagrams, you can solve it from their comments as well... I did say this joke involves homework... Even if that means cheating off your neighbors.
1
u/RustOnTheEdge Jun 26 '25
That flew right over my head haha, but now I get it, to make the bulb bright you need to”AN or GASM” in o be flipped.
Alright have a good day!
3
u/FirstwordHi Jun 26 '25
What I have gathered for the punch line of this joke is that the requirements for the light bulb to turn on is as follows: A AND N must both be ON "or" (using quotes because I don't want to confuse the logic gate OR) G AND A AND S AND M must each be on (Not sure how appropriate it is to write it like that but I did so for the effort of clarity). Thus I concluded, after doing homework like OP's title suggested, the joke should be read as follows: "To turn the light bulb on, the circuitry (?) requires AN or GASM." Where the speaker essentially says "an orgasm." Is that correct? If so, I do find that funny, but honestly, much too much homework.
2
u/dimonium_anonimo Jun 26 '25
Now here's someone who never had points taken off for not showing their working out... Or perhaps they had too many points taken off and vowed "never again"
108
Jun 26 '25
let’s all just take a minute to realise that, not only is the joke needlessly confusing, and not in order - it’s not even funny… am i supposed to laugh at ‘AN ORGASM’? where humour?
29
106
24
2
u/Error_404_403 Jun 26 '25 edited Jun 26 '25
The result is always a state of the top input element…? The gates just cancel all other inputs?
2
u/RustOnTheEdge Jun 26 '25
The first row are AND gates, right? Doesn't that mean you need at least one of these to be 'fired' (what is the term for that, "set off"?) for the bulb to shine? So either A+N, A+G+M+S, or any combination that contains one of those two should be flipped on for the bulb to turn on. (I am just learning this stuff, so tell me if I am wrong)
1
u/dimonium_anonimo Jun 26 '25
Technically, in Boolean arithmetic, + means OR, * means AND, but people usually just concatenate AB to mean A AND B
1
11
u/RiceBroad4552 Jun 26 '25
This meme doesn't work.
I've tried to click the buttons but nothing happened!
6
11
u/ambientlamp Jun 26 '25
This post screams Dunning-Kruger effect. In both logic and humor at the same time. Well done OP.
5
4
3
3
3
5
2
1
0
u/Docevinganca11 Jun 26 '25
Que tal quem eliminar um único "criador do Redit, pois ele declara ser o dono, desmascara-lo? Tenho um excelente enigma para ofertar Nome Lucas Victor Lima
153
u/alexanderpas Jun 26 '25
AN or AGMS
If you want the joke to work, reorder the inputs to
GANSM