Template:Sum: Difference between revisions
Jump to navigation
Jump to search
Neocaridina (talk | contribs) No edit summary |
Neocaridina (talk | contribs) m Undo revision 169167 by Neocaridina (talk) Tag: Undo |
||
| Line 6: | Line 6: | ||
For instance, <tt><nowiki><tt>{{sum|k{{=}}0|n-1|k}}</tt></nowiki></tt> becomes <tt>{{sum|k{{=}}0|n-1|k}}</tt>. (Note that <tt>{{[[:Template:=|=]]}}</tt> must be used in place of <tt>=</tt>, which is otherwise accepted as a parameter and may cause problems.) | For instance, <tt><nowiki><tt>{{sum|k{{=}}0|n-1|k}}</tt></nowiki></tt> becomes <tt>{{sum|k{{=}}0|n-1|k}}</tt>. (Note that <tt>{{[[:Template:=|=]]}}</tt> must be used in place of <tt>=</tt>, which is otherwise accepted as a parameter and may cause problems.) | ||
If you find this workaround inelegant, go pester Nathaniel Johnston to | If you find this workaround inelegant, go <s>pester</s> politely ask Nathaniel Johnston to give us the MediaWiki LaTeX extension. | ||
:<tt>{{sum|n{{=}}0|∞|{{frac|x<sup>2<sup>n</sup></sup>*(2+x<sup>2<sup>n</sup></sup>)|(1-x<sup>2<sup>n</sup></sup>)<sup>2</sup>*(1+x<sup>2<sup>n</sup></sup>)<sup>2</sup>}}}} = {{frac|x*(2-x)|(1-x)<sup>2</sup>}}</tt> | :<tt>{{sum|n{{=}}0|∞|{{frac|x<sup>2<sup>n</sup></sup>*(2+x<sup>2<sup>n</sup></sup>)|(1-x<sup>2<sup>n</sup></sup>)<sup>2</sup>*(1+x<sup>2<sup>n</sup></sup>)<sup>2</sup>}}}} = {{frac|x*(2-x)|(1-x)<sup>2</sup>}}</tt> | ||
{{dtlc1}}</noinclude> | {{dtlc1}}</noinclude> | ||
Latest revision as of 16:14, 23 January 2026
{{sum}} is a template for expressing mathematical summations. It has upper and lower limits to the right of the symbol, and 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
- brac: If specified as blank (ie. ...|brac=}}), removes the bracket pair enclosing the summand. To be used in the event of a summation involving things like {{choose}}, which have their own brackets, ∑n-1k=0(k2).
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.
- ∑∞n=0(x2n*(2+x2n)(1-x2n)2*(1+x2n)2) = x*(2-x)(1-x)2