Module:JI ratios: Difference between revisions

Ganaram inukshuk (talk | contribs)
m comment out some default args, as _ji_ratios() is the main function to be called
Ganaram inukshuk (talk | contribs)
m testing with smaller default int limit
Line 28: Line 28:
--  be omitted by Tenney height, or if no Tenney height is entered, omits
--  be omitted by Tenney height, or if no Tenney height is entered, omits
--  ratios whose complements are missing.
--  ratios whose complements are missing.
local DEFAULT_EQUAVE = rat.new(2)
local DEFAULT_INT_LIMIT = 30


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Line 314: Line 317:
function p._ji_ratios(args)
function p._ji_ratios(args)
-- Args for ease of access
-- Args for ease of access
equave      = args["Equave"] or rat.new(2)
equave      = args["Equave"] or DEFAULT_EQUAVE
int_limit  = args["Int Limit"] or 50
int_limit  = args["Int Limit"] or DEFAULT_INT_LIMIT
odd_limit  = args["Odd Limit"]
odd_limit  = args["Odd Limit"]
prime_limit = args["Prime Limit"]
prime_limit = args["Prime Limit"]