Module:Utils/doc: Difference between revisions
add descriptions for other functions |
mNo edit summary |
||
| Line 22: | Line 22: | ||
| desc_prime_factorization_raw = Returns a table encoding the prime factorization of <code>n</code>. | | desc_prime_factorization_raw = Returns a table encoding the prime factorization of <code>n</code>. | ||
| desc_signum = Returns 1 for positive numbers, −1 for negative ones, and 0 for zero and non-integer inputs. | | desc_signum = Returns 1 for positive numbers, −1 for negative ones, and 0 for zero and non-integer inputs. | ||
| desc_next_young_diagram = Returns the next Young diagram of the same size; the first one is <code>[N]</code>, the last one is <code>[1, 1, …, 1]</code>. After the last one, <code>nil</code> is returned. The input table is modified. | | desc_next_young_diagram = Returns the next Young diagram of the same size; the first one is <code>[N]</code>, the last one is <code>[1, 1, …, 1]</code>. After the last one, <code>nil</code> is returned. The input table is modified. | ||
| desc_log2 = Returns the base-2 logarithm of <code>x</code>. | | desc_log2 = Returns the base-2 logarithm of <code>x</code>. | ||
| desc__log = Lua-only implementation of <code>log</code>. | | desc__log = Lua-only implementation of <code>log</code>. | ||