Difference between revisions of "Template:Harmonic number generator/doc"
Jump to navigation
Jump to search
(Created page with "'''Template:Harmonic number generator''' takes 3 base numbers ''x'', ''y'', ''z'' and returns a decreasing (inverse)[https://en.wikipedia.org/wiki/Harmonic_number harmonic] se...") |
|||
Line 1: | Line 1: | ||
'''Template:Harmonic number generator''' takes 3 base numbers ''x'', ''y'', ''z'' and returns a decreasing (inverse)[https://en.wikipedia.org/wiki/Harmonic_number harmonic] sequence for each. The main purpose of this template is to quickly find [https://wiki.teamfortress.com/wiki/Control_point_timing point capture times] for map pages. | '''Template:Harmonic number generator''' takes 3 base numbers ''x'', ''y'', ''z'' and returns a decreasing (inverse)[https://en.wikipedia.org/wiki/Harmonic_number harmonic] sequence for each. The main purpose of this template is to quickly find [https://wiki.teamfortress.com/wiki/Control_point_timing point capture times] for map pages. | ||
− | The template uses the parser function [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr #expr] for its calculations. It rounds to 2 decimal places. | + | The template uses the parser function [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr #expr] for its calculations. It rounds to 2 decimal places. Note that the template will not include zeros in decimal places. |
== Example == | == Example == |
Revision as of 11:21, 23 June 2022
Template:Harmonic number generator takes 3 base numbers x, y, z and returns a decreasing (inverse)harmonic sequence for each. The main purpose of this template is to quickly find point capture times for map pages.
The template uses the parser function #expr for its calculations. It rounds to 2 decimal places. Note that the template will not include zeros in decimal places.
Example
Process has base point capture times of 22, 14 and 4 seconds for its mid, second and last points respectively. We can use Template:Harmonic number generator to find the capture times for each player multiplier up to x11.
{{Harmonic number generator|22|14|4}}
Will yield:
n=1 | 22 | 14 | 4 |
---|---|---|---|
2 | 14.67 | 9.33 | 2.67 |
3 | 12 | 7.64 | 2.18 |
4 | 10.56 | 6.72 | 1.92 |
5 | 9.64 | 6.13 | 1.75 |
6 | 8.98 | 5.71 | 1.63 |
7 | 8.48 | 5.4 | 1.54 |
8 | 8.09 | 5.15 | 1.47 |
9 | 7.78 | 4.95 | 1.41 |
10 | 7.51 | 4.78 | 1.37 |
11 | 7.29 | 4.64 | 1.32 |