Template:Lim: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Confocal (talk | contribs)
https://en.wikipedia.org/wiki/Limiting_parallel
m use {{frac}} and {{sqrt}} in example uses
 
Line 5: Line 5:
*<tt>sep</tt>: The separation of the subscript part beneath the name, where <tt>0</tt> keeps them the default line width apart. (default <tt>-0.5em</tt>, which seems to look best on my device)
*<tt>sep</tt>: The separation of the subscript part beneath the name, where <tt>0</tt> keeps them the default line width apart. (default <tt>-0.5em</tt>, which seems to look best on my device)
Example:
Example:
*<tt><nowiki><tt>{{lim|n→∞|n!/(sqrt(2*π*n)*(n/e)<sup>n</sup>)}}=1</tt></nowiki></tt> becomes <tt>{{lim|n→∞|n!/(sqrt(2*π*n)*(n/e)<sup>n</sup>)}}=1</tt>
*<tt><nowiki><tt>{{lim|n→∞|{{frac|n!|{{sqrt|2*π*n}}*(n/e)<sup>n</sup>}}}}=1</tt></nowiki></tt> becomes <tt>{{lim|n→∞|{{frac|n!|{{sqrt|2*π*n}}*(n/e)<sup>n</sup>}}}}=1</tt>


From [[Bill Gosper]]'s [https://www.tweedledum.com/rwg/idents.htm identity page]:
From [[Bill Gosper]]'s [https://www.tweedledum.com/rwg/idents.htm identity page]:
:<tt>{{lim|n→∞|{{product|k{{=}}n|2*n|π/(2*atan(k))}}}}=4<sup>1/π</sup></tt>
:<tt>{{lim|n→∞|{{product|k{{=}}n|2*n|{{frac|π|2*atan(k)}}}}}}={{sqrt|4|π}}</tt>


[[Category:Templates]]</noinclude>
[[Category:Templates]]{{DISPLAYTITLE:Template:lim}}</noinclude>

Latest revision as of 17:49, 14 September 2023

{{lim}} is a template for expressing mathematical limits. Parameters:

  • lim (or first argument): The value to express beneath its name.
  • expr (or second argument): The expression evaluated within the brackets.
  • name (or third argument): The name to replace the lim with. (optional)
  • sep: The separation of the subscript part beneath the name, where 0 keeps them the default line width apart. (default -0.5em, which seems to look best on my device)

Example:

  • <tt>{{lim|n→∞|{{frac|n!|{{sqrt|2*π*n}}*(n/e)<sup>n</sup>}}}}=1</tt> becomes limn→∞(n!√2*π*n*(n/e)n)=1

From Bill Gosper's identity page:

limn→∞(∏2*nk=n(π2*atan(k)))=π√4