Module:Uniform map: Difference between revisions
m Changes in local variable definitions and such, hopefully fixing stuff along the way |
m Fix references to p.primes |
||
| Line 33: | Line 33: | ||
local JIP_table = {} | local JIP_table = {} | ||
for i=1, u.index_of(p.primes, prime) do | for i=1, u.index_of(p.primes, prime) do | ||
JIP_table[i] = size*u._log(primes[i]) | JIP_table[i] = size*u._log(p.primes[i]) | ||
end | end | ||
return JIP_table | return JIP_table | ||
| Line 41: | Line 41: | ||
function p.simple_map(size, prime) | function p.simple_map(size, prime) | ||
local simple_map_table = {} | local simple_map_table = {} | ||
for i=1, u.index_of(primes, prime) do | for i=1, u.index_of(p.primes, prime) do | ||
simple_map_table[i] = u._round_dec(size*u._log(primes[i])) | simple_map_table[i] = u._round_dec(size*u._log(p.primes[i])) | ||
end | end | ||
return simple_map_table | return simple_map_table | ||
| Line 72: | Line 72: | ||
local map = {} | local map = {} | ||
local maptable = {} -- Table of uniform maps with boundaries and wart notation | local maptable = {} -- Table of uniform maps with boundaries and wart notation | ||
for i=1, u.index_of(primes, prime) do | for i=1, u.index_of(p.primes, prime) do | ||
map[i] = 0 -- Reset to p-limit null map | map[i] = 0 -- Reset to p-limit null map | ||
p.lower[i] = 0 | p.lower[i] = 0 | ||
| Line 105: | Line 105: | ||
function p._print_table(p, min, max) | function p._print_table(p, min, max) | ||
if u.index_of(primes, u.eval_num_arg(p, 5)) == nil then | if u.index_of(p.primes, u.eval_num_arg(p, 5)) == nil then | ||
p = 5 -- Default to 5-limit | p = 5 -- Default to 5-limit | ||
end | end | ||