Template:Sum: Difference between revisions
Jump to navigation
Jump to search
m typo |
DroneBetter (talk | contribs) m wait a minute, https://en.wiktionary.org/wiki/%CE%A3 says "there exists a distinct symbol (∑) for the purpose of the mathematical summation" (the slightly taller one I had previously been using), sorry |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>∑<span style="display:inline-grid;font-size:0.75em;vertical-align:middle"><span>{{{uppe|{{{2}}}}}}</span><span>{{{lowe|{{{1}}}}}}</span></span>({{{term|{{{3}}}}}})</includeonly><noinclude>This template is for expressing mathematical summations. It uses a vertical grid, so makes the line it inhabits slightly taller. Its parameters may be expressed with their names present or forgone (in which case their order is used). | ||
* <tt>lowe</tt>: The lower bound | * <tt>lowe</tt>: The lower bound | ||
* <tt>uppe</tt>: The upper bound | * <tt>uppe</tt>: The upper bound | ||
Revision as of 11:48, 18 August 2023
This template is for expressing mathematical summations. It uses a vertical grid, so makes the line it inhabits slightly taller. Its parameters may be expressed with their names present or forgone (in which case their order is used).
- lowe: The lower bound
- uppe: The upper bound
- term: The summand
For instance, <tt>{{sum|k{{=}}0|n-1|k}}</tt> becomes ∑n-1k=0(k). (Note that {{=}} must be used in place of =, which is otherwise accepted as a parameter and may cause problems.)
If you find this workaround inelegant, go pester politely ask Nathaniel Johnston to give us the MediaWiki LaTeX extension.