Template:Stats PowerLaw

From Nonkiki Wiki
Revision as of 05:55, 23 January 2019 by Mollie (talk | contribs) (1 revision imported: All the templates from Cuntel Wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Convert a power law to a linear one according to x = factor * y ^ power; used to turn arbitrary ranges of numbers x into small integers y suitable for use in a #switch: statement.

Arguments are x (mandatory, must be >0), factor (default 1) and power (default 2).

To perform the reverse operation, retruning x given y, see Template:Stats PowerLawRev.