Template:Harmonic number generator/doc

From comp.tf
Jump to navigation Jump to search

Template:Harmonic number generator takes 3 base numbers b1, b2, b3 and returns a decreasing, inverse harmonic sequence for each in the form 1/H(n) × bi up to n=11. 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[edit]

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