Difference between revisions of "2954: Bracket Symbols"
(→Explanation) |
(→Explanation) |
||
| Line 94: | Line 94: | ||
|<nowiki>|⟩</nowiki> | |<nowiki>|⟩</nowiki> | ||
|Don't stop here--this is quantum country | |Don't stop here--this is quantum country | ||
| + | |This {{w|Bra–ket notation|notation is used in quantum mechanics}} to notate a vector. This is called a ket, and the mirrored sign <nowiki>⟨|</nowiki> is called a bra. Combining them as bra-ket gives the inner product <nowiki>⟨|⟩</nowiki>. | ||
| | | | ||
| − | + | } | |
| − | |||
<!-- Title text --> | <!-- Title text --> | ||
Revision as of 09:14, 4 July 2024
| Bracket Symbols |
Title text: ’"‘”’" means "I edited this text on both my phone and my laptop before sending it" |
Explanation
| This is one of 51 incomplete explanations: Created by a ([{《"complicated function"》}]) - Please change this comment when editing this page. Do NOT delete this tag too soon. If you can fix this issue, edit the page! |
'The preliminary nerd has arrived and did his best to fix the article.' (Even though I'm not British, I thought it might be funny to reference the comic. {See what I did there?} )
Bracket symbols are meant to put around a text. This comic shows a variety of bracket symbols and Randall's description. Here is a list of what these symbols may mean as a preliminary to a full proper explanation: (feel free to update or completely replace this)
| Symbols | Comic text | Real use | Explanation | ||||
|---|---|---|---|---|---|---|---|
| () | Regular parentheses for setting stuff aside | Used to mark side remarks (like explanations) in regular text. Also used in mathematical expressions and programming languages to show the sequence of operations or separate other things like function arguments. | Normal parentheses. No joke here. | ||||
| [] | Square brackets (more secure) | Used in regular text to mark still less important remarks, like glosses, omissions, translator and editorial notes etc. In mathematics, often used for matrices or closed intervals. Sometimes used as outer parentheses for easier visual matching in complicated expressions. In programming languages used to mark specific syntactic elements, like array indexes, lists etc. | The sharper edges and corners may suggest these brackets hold things in more securely, so the contents is less likely to fall out. They resemble staples used to hold things in place securely. | ||||
| {} | This stuff is expensive so be careful with it | Rarely used in normal text. In mathematics, usually used to denote sets, but other usage is possible. In programming languages most often used to denote begin and end of a separate block of code, but other uses are also extant. | All that graphical detail in the bracket, if manufactured as a physical object, would increase the production cost making it more expensive than "regular" brackets. | ||||
| "" or “” | Someone is talking | Used to denote speech or citations in normal text. The first version is commonly used in programming languages to denote text that is not a program, such as messages displayed to the user. | Normal quotation marks. Some languages or communities use different typographical conventions such as „German quotation marks“. See also below for British and French. | ||||
| '' or ‘’ | Someone British is talking | British quotation marks. Some programming languages use the first version to denote non-program text. | British media use these to note when people are talking. | ||||
| ‹› or <> | An Animorph is talking | Angle brackets | Books like the series Animorphs or science fiction novels use these when a character is communicating nonverbally, for example via telepathy. | ||||
| «» | A French Animorph is talking | French quotation marks. In some languages used for quotes within quotes. For quoting conventions in different languages, see this document. | These symbols are literally called French quotation marks and are used in French texts as the first-level quotes. Here Randall is mixing the SF convention described above with actual French use. | ||||
| || | I'm scared of negative numbers but these sigils will protect me | Absolute indicators used in math to ensure a number is positive (ex. |-69| = 69) therefore protecting you and your equations from them. | |||||
| **, __, // | I have a favorite monospaced font | Markup symbols for text to make it *bold*, _underlined_, or /italic/. | |||||
| ~~ | I'm being sarcastic and I had a Tumblr account in 2014 | Strikethrough markup commonly used on sites like Tumblr to indicate that you don't really mean something you said. This is a somewhat archaic trend, but I still use it... | |||||
| [([{()}],)] | These Python functions are not getting along | The square brackets denote a mutable list, the round brackets an immutable tuple , and the curly brackets a set. It is valid to have nested them like this. [] could also be a slice (a bit of a list or tuple) and {} could be a dictionary, but the syntax is wrong for these. | Random parentheses - Spaghetti code (badly maintained or written) in programming languages including Python will often be badly organized creating a mess of indentations and brackets used to create functions or loops etc. | ||||
| ⌊⌋ | Help, I'm a mathematician trying to work with actual numbers and they're scary | Mathematical symbols meaning "floor" (i.e. round down to the nearest lower integer). | (Someone else explain the joke!) | ||||
| ʃ ʅ | Why are you trying to read my violin? | ʃ is the Integral symbol which itself is derived from a Long s. In mathematics it is usually paired with the differential of the variable of integration (e.g., dx). A reverse integral symbol is usually not used in mathematics.
The symbols could also be a lowercase Esh (letter) and its reversed symbol. |
Violins are known for their characteristic F-holes. | ||||
| |⟩ | Don't stop here--this is quantum country | This notation is used in quantum mechanics to notate a vector. This is called a ket, and the mirrored sign ⟨| is called a bra. Combining them as bra-ket gives the inner product ⟨|⟩. |
} Transcript
Bracket Symbols and what they mean ( ) Regular parentheses for setting stuff aside [ ] Square brackets (more secure) { } This stuff is expensive so be careful with it " " Someone is talking ' ' Someone British is talking ‹ › An Animorph is talking « » A French Animorph is talking |
I'm scared of negative numbers but these sigils will protect me
* * _ _ / / I have a favorite monospaced font ~ ~ I'm being sarcastic and I had a Tumblr account in 2014 [ ( [ { ( ) } ] , ) ] These Python functions are not getting along ⌊ ⌋ Help, I'm a mathematician trying to work with actual numbers and they're scary ʃ ʅ Why are you trying to read my violin? |
⟩ Don't stop here--this is quantum country
Discussionummm. How does editing this stuff work. Is this HTML? Why can't we have a gooey? Also, I only sort of get this comic, but it's not that funny. <marquee behavior="scroll" direction="up">Here is some scrolling text... going up!</marquee> 172.69.58.102 05:13, 4 July 2024 (UTC)
The "violin" symbols look like an upside-down bag symbol (multiset symbol) to me, moreso than integrals. 172.69.58.135 18:09, 4 July 2024 (UTC) Did my best with my first ever contribution - I know there's a chart feature but I cba to relearn html. Feel free to fix it and PLEASE finish my bad explanations. Qwikster (talk) 06:05, 4 July 2024 (UTC) ⌊⌋ are floor brackets (and you can now copy-paste them from here into the explanation as needed) 162.158.126.33 06:03, 4 July 2024 (UTC) As for the spaghetti, in Python, it'd be a list containing a tuple containing a list containing a set containing an empty tuple. Probably doesn't mean anything specific and pretty much useless), but it *is* legal code 162.158.126.164 06:05, 4 July 2024 (UTC) Yay, I figured out how to use a table! Qwikster (talk) 06:42, 4 July 2024 (UTC) I'm British, ex 60+ years and I'm sure I was taught in school to use "for first person speech" and 'for quoting others'. I hadn't even noticed printers doing the opposite. But there again I didn't go to Grammar School. RIIW - Ponder it (talk) 07:36, 4 July 2024 (UTC)
The integral sign (and its reverse) in the context of string instruments are the so-called 'F-holes', and they're not just decorative elements but help in the instrument(s) resonate more freely. Other shapes exist as well. See here for an in-depth explanation. 172.69.151.27 09:13, 4 July 2024 (UTC) 「かっこ」108.162.250.151 09:24, 4 July 2024 (UTC) Randall missed an opportunity to reference catamorphisms i.e. banana brackets. There may be some better examples missed as well. Who is that? 172.68.186.156 10:05, 4 July 2024 (UTC) Likely reference to the quote and catchphrase "We can't stop here, this is bat country" from Fear and Loathing in Las Vegas? 162.158.134.242 11:05, 4 July 2024 (UTC) The 'violin' quotes may look similar (but not identical) to the S-Shaped bag delimiters (U+27C5 & U+27C6), though these are normally used in the opposite order to enclose multisets. 172.71.90.10 13:52, 4 July 2024 (UTC) The French quotation marks « » are better known as guillemets. They are also used in Spanish, and probably several other written languages. 172.71.142.167 15:10, 4 July 2024 (UTC) The single-/double-quotes being recursively embedded with the other reminds me of a short story I once read. It had the form of a tale a person was telling of when he encountered a stranger with a tale of his own. In that tale, the stranger made the aquaintance of a particularly talkative individual. That individual reported the story he heard from a further interlocutor, that story featuring the reminiscences of someone else... Which came to a conclusion." ...is the way it ended.' ...and so went that story" ...but of course that was just what was heard.' ...if, of course, you could credit it." (It was more layers deep, of course, and with both starting quotes and the paragraph-maintaining standards of opening quotes, which yet still managed to suck you in.) Cannot remember who it was by/what it was called, but obviously the play on the style (a bit more clever than just "I met a man who said, 'I met a man who said, "I met a man who said, 'I met a man who said "..."'"'") made a big impression on me at the time. 172.70.162.18 19:51, 4 July 2024 (UTC) "~~ I'm being sarcastic and..." The symbol ≈ means approximately equal to. This is much used in some engineering writing. "Output level should be ≈1 Volt." In casual work this may be approximated as "~", or "~~" which is less liable to be confused for a negative sign. -- PRR (talk) 04:02(+:03), 5 July 2024 (please sign your comments with ~~~~)
As the only person to get an Academy Technical Achievement Award for inventing screenplay text formatting (and a produced screenwriter in the WGAw), I’m here to let you know square brackets are NOT used in screenplays, teleplays, or stage plays to denote stage direction. Square brackets aren’t used for ANYTHING in those script forms. This should be corrected (by someone more conversant with edits) to indicate that normal parenthesis are used in screenplay or teleplays to indicate stage direction associated with specific passages of dialog. These are typically called “parenthetical action” or “parenthetical.” Some stage play formats omit parenthetical action but place parentheses around passages of stage action. But NEVER square brackets. -- SMGxkcd (talk) 13:11, 5 July 2024 (please sign your comments with ~~~~)
Should we start up an Animorphs category now? It's been referenced a few times now, 1380, 1817, and also in 1187 and 1360. Fephisto (talk) 14:00, 5 July 2024 (UTC)
Double quotes: "Someone is talking". Single quotes: double quotes, but this someone is talking... with "missing teeth"...? Making fun of British dental hygiene is still common? Or died that out with Brexit? 172.71.99.139 20:10, 5 July 2024 (UTC)
Bad encoding. My firefox shows the title text as |
