Template:Stats PowerLaw

From Nonkiki Wiki
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.