Template:Harmonic number generator/doc

From comp.tf
< Template:Harmonic number generator
Revision as of 11:17, 23 June 2022 by Garlic (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

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