Module:Uniform map: Difference between revisions
m More p fixing... |
m Yet another p... |
||
| Line 71: | Line 71: | ||
function p.make_table(prime, min, max) | function p.make_table(prime, min, max) | ||
local map = {} | local map = {} | ||
local maptable = {} | local maptable = {} -- Table of uniform maps with boundaries and wart notation | ||
for i=1, u.index_of(p.primes, prime) do | for i=1, u.index_of(p.primes, prime) do | ||
map[i] = 0 | map[i] = 0 -- Reset to p-limit null map | ||
p.lower[i] = 0 | p.lower[i] = 0 | ||
p.upper[i] = 0 | p.upper[i] = 0 | ||
end | end | ||
map = p.simple_map(min, prime) | map = p.simple_map(min, prime) -- Set p-limit map for minimum size | ||
local lb = lowerbound(map) -- Minimum size for the current map | local lb = lowerbound(map) -- Minimum size for the current map | ||
local ub = upperbound(map) -- Maximum size for the current map | local ub = upperbound(map) -- Maximum size for the current map | ||
| Line 108: | Line 108: | ||
prime = 5 -- Default to 5-limit | prime = 5 -- Default to 5-limit | ||
end | end | ||
luatable = p.make_table( | luatable = p.make_table(prime, u.eval_num_arg(min, 11.5), u.eval_num_arg(max, 12.5)) | ||
wikitable = string.format('{| class="wikitable"\n|+ %d-limit [[uniform map]]s between %f and %f', prime, min, max) | wikitable = string.format('{| class="wikitable"\n|+ %d-limit [[uniform map]]s between %f and %f', prime, min, max) | ||
for i=1, 3 do | for i=1, 3 do | ||