Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

UniWiki:Manual of Style: Difference between revisions

From EVE University Wiki
Djavin novienta (talk | contribs)
Djavin novienta (talk | contribs)
Line 367: Line 367:


== Common mathematical symbols ==
== Common mathematical symbols ==
{{shortcut|MOS:COMMONMATH}}
{{see also|UniWiki:Manual of Style/Mathematics}}
{{see also|Wikipedia:Manual of Style/Mathematics}}


* For a negative sign or subtraction operator, use a minus sign ({{xt|−}}, Unicode character U+2212 <small>MINUS SIGN</small>). Input by clicking on it in the insert box beneath the edit window or by typing <code>&amp;minus;</code>.
* For a negative sign or subtraction operator, use a minus sign ({{xt|−}}, Unicode character U+2212 <small>MINUS SIGN</small>). Input by clicking on it in the insert box beneath the edit window or by typing <code>&amp;minus;</code>.
* For a multiplication sign between numbers, use {{xt|×}} (Unicode character U+00D7 <small>MULTIPLICATION SIGN</small>), which is input by clicking on it in the edit toolbox under the edit window or by typing <code>&amp;times;</code>. The letter {{xt|x}} should not be used to indicate multiplication, but it is used (unspaced) as the substitute for "by" in terms such as {{xt|[[4x4]]}}.
* For a multiplication sign between numbers, use {{xt|×}} (Unicode character U+00D7 <small>MULTIPLICATION SIGN</small>), which is input by clicking on it in the edit toolbox under the edit window or by typing <code>&amp;times;</code>. The letter {{xt|x}} should not be used to indicate multiplication, but it is used (unspaced) as the substitute for "by" in terms such as {{xt|[[4x4]]}}.
* [[Exponentiation]] is indicated by a superscript, {{xt|{{var|a}}<sup>{{var|n}}</sup>}} (typed as <code><nowiki>''a''<sup>''n''</sup></nowiki></code> or <code><nowiki>{{var|a}}<sup>{{var|n}}</sup></nowiki></code>). [[Exponential notation]] can be spaced or unspaced, depending on circumstances.
* [[Wikipedia:Exponentiation|Exponentiation]] is indicated by a superscript, {{xt|''a''<sup>''n''</sup>}} (typed as <code><nowiki>''a''<sup>''n''</sup></nowiki></code>. [[Wikipedia:Exponential notation|Exponential notation]] can be spaced or unspaced, depending on circumstances.
* Do not use programming language notation outside computer program listings. In most programming languages, subtraction, multiplication, and exponentiation are respectively represented by the [[hyphen-minus]] <code>-</code>, the [[asterisk]] <code>*</code>, and either the [[caret]] <code>^</code> or the double asterisk <code>**</code>, and [[scientific notation]] is replaced by [[E notation]].
* Do not use programming language notation outside computer program listings. In most programming languages, subtraction, multiplication, and exponentiation are respectively represented by the [[Wikipedia:Hyphen-minus|hyphen-minus]] <code>-</code>, the [[Wikipedia:Asterisk|asterisk]] <code>*</code>, and either the [[Wikipedia:Caret|caret]] <code>^</code> or the double asterisk <code>**</code>, and [[Wikipedia:Scientific notation|scientific notation]] is replaced by [[Wikipedia:E notation|E notation]].
* Symbols for [[binary operator]]s and [[binary relation|relations]] are spaced on both sides:
* Symbols for [[Wikipedia:Binary operator|binary operators]] and [[Wikipedia:Binary relation|relations]] are spaced on both sides:
** plus, minus, and plus-or-minus (as binary operators): {{xt|+}}, {{xt|−}}, {{xt|±}} (as in {{xt|5&nbsp;−&nbsp;3}});
** plus, minus, and plus-or-minus (as binary operators): {{xt|+}}, {{xt|−}}, {{xt|±}} (as in {{xt|5&nbsp;−&nbsp;3}});
** multiplication and division: {{xt|×}}, {{xt|÷}};
** multiplication and division: {{xt|×}}, {{xt|÷}};
** equals, does not equal, equals approximately: {{xt|{{=}}}}, {{xt|≠}}, {{xt|≈}};
** equals, does not equal, equals approximately: {{xt|<nowiki>=</nowiki>}}, {{xt|≠}}, {{xt|≈}};
** is less than, is less than or equal to, is greater than, is greater than or equal to: {{xt|<}}, {{xt|≤}}, {{xt|>}}, {{xt|≥}}.
** is less than, is less than or equal to, is greater than, is greater than or equal to: {{xt|<}}, {{xt|≤}}, {{xt|>}}, {{xt|≥}}.
* Symbols for [[unary operator]]s are closed-up to their operand:
* Symbols for [[Wikipedia:Unary operator|unary operators]] are closed-up to their operand:
** positive, negative, and positive-or-negative signs: {{xt|+}}, {{xt|−}}, {{xt|±}} (as in {{xt|−3}});
** positive, negative, and positive-or-negative signs: {{xt|+}}, {{xt|−}}, {{xt|±}} (as in {{xt|−3}});
** other unary operators, such as the exclamation mark as a [[factorial]] sign (as in {{xt|5!}}).
** other unary operators, such as the exclamation mark as a [[Wikipedia:Factorial|factorial]] sign (as in {{xt|5!}}).
* Variables are italicized, but digits and punctuation are not; only {{var|x}} and {{var|y}} are italicized in {{xt|2(5''x''&nbsp;+&nbsp;''y'')<sup>2</sup>}}. The [[semantic HTML]] element {{tag|var}}, or its template wrapper {{tlx|var}} can be used to distinguish variables from other uses of italics, as illustrated in the code example above.
* Variables are italicized, but digits and punctuation are not; only ''x'' and ''y'' are italicized in {{xt|2(5''x''&nbsp;+&nbsp;''y'')<sup>2</sup>}}. The [[Wikipedia:Semantic HTML|semantic HTML]] element {{tag|var}} can be used to distinguish variables from other uses of italics, as illustrated in the code example above.


== Grammar and usage ==
== Grammar and usage ==